Re: [Mailman-Users] Indexing mail right after delivery

2010-03-16 Thread Cédric Jeanneret
Done for launchpad. thanks again! On Mon, Mar 15, 2010 at 5:40 PM, Mark Sapiro wrote: > Cedric Jeanneret wrote: >> >>Maybe we should delete my ""bug" on launchpad, or directly link it to your >>FAQ page ? >> >>I just added my code in the function, and now it indexes, and archives >>correctly. >

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-15 Thread Mark Sapiro
Cedric Jeanneret wrote: > >Maybe we should delete my ""bug" on launchpad, or directly link it to your FAQ >page ? > >I just added my code in the function, and now it indexes, and archives >correctly. I suggest you just delete the two existing attachments and attach your current code with a note

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-15 Thread Cedric Jeanneret
On Sun, 14 Mar 2010 17:38:16 -0700 Mark Sapiro wrote: > To follow up on this thread, there is now a FAQ at > which contains an attached template, > Ext_Arch.py, which can be used as an external archiver and which will > add the message to the pipermail archive, and t

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-14 Thread Mark Sapiro
To follow up on this thread, there is now a FAQ at which contains an attached template, Ext_Arch.py, which can be used as an external archiver and which will add the message to the pipermail archive, and then call a stub function with arguments of the list name, host n

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Mark Sapiro
On 3/4/2010 7:10 AM, Cedric Jeanneret wrote: > > hmmm, I use the h.close() a bit after (I catche its latest ID so that > I ca build the direct URL for my indexer). But for now, I guess I'm > done. I've opened a bug (didn't figure where I could put my stuff) on > launchpad: https://bugs.launchpad.n

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Cedric Jeanneret
On Thu, 04 Mar 2010 06:49:54 -0800 Mark Sapiro wrote: > On 3/4/2010 4:23 AM, Cedric Jeanneret wrote: > > > > I think I found what's the problem is : the script works now, but as > > I write my own archiver, it doesn't do the pipermail part (i.e. > > update mails in archive)... I thought that thi

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Mark Sapiro
On 3/4/2010 4:46 AM, Cedric Jeanneret wrote: > > uho, found it !! > mailman/bin/arch toto > > I guess that's all :)) You may or may not be able to use bin/arch, but you can't use it in conjunction with an external archiver because of list locking. If you call bin/arch from your external archive

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Mark Sapiro
On 3/4/2010 4:23 AM, Cedric Jeanneret wrote: > > I think I found what's the problem is : the script works now, but as > I write my own archiver, it doesn't do the pipermail part (i.e. > update mails in archive)... I thought that this code : > > mlist = MailList.MailList(maillist, lock=False) > ms

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Cedric Jeanneret
On Wed, 03 Mar 2010 10:04:31 -0800 Mark Sapiro wrote: > On 3/3/2010 9:20 AM, Cédric Jeanneret wrote: > > > > Maybe a python version? What is really strange is that it works inside > > the archiver I tried to NOT use email.message_from_file (so use > > directly StringIO on sys.stdin), and it

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Cedric Jeanneret
On Wed, 03 Mar 2010 10:04:31 -0800 Mark Sapiro wrote: > On 3/3/2010 9:20 AM, Cédric Jeanneret wrote: > > > > Maybe a python version? What is really strange is that it works inside > > the archiver I tried to NOT use email.message_from_file (so use > > directly StringIO on sys.stdin), and it

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-03 Thread Cedric Jeanneret
On Wed, 03 Mar 2010 10:04:31 -0800 Mark Sapiro wrote: > On 3/3/2010 9:20 AM, Cédric Jeanneret wrote: > > > > Maybe a python version? What is really strange is that it works inside > > the archiver I tried to NOT use email.message_from_file (so use > > directly StringIO on sys.stdin), and it

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-03 Thread Mark Sapiro
On 3/3/2010 9:20 AM, Cédric Jeanneret wrote: > > Maybe a python version? What is really strange is that it works inside > the archiver I tried to NOT use email.message_from_file (so use > directly StringIO on sys.stdin), and it worked fine. In fact, the > error was that "Message doesn't have "

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-03 Thread Cédric Jeanneret
On Wed, Mar 3, 2010 at 4:44 PM, Mark Sapiro wrote: > On 3/3/2010 12:57 AM, Cedric Jeanneret wrote: >> On Tue, 02 Mar 2010 11:34:25 -0800 >> Mark Sapiro wrote: >> >>> On 3/2/2010 3:41 AM, Cedric Jeanneret wrote: > [...] from cStringIO import StringIO > [...] f = StringIO(str(msg)) h

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-03 Thread Mark Sapiro
On 3/3/2010 12:57 AM, Cedric Jeanneret wrote: > On Tue, 02 Mar 2010 11:34:25 -0800 > Mark Sapiro wrote: > >> On 3/2/2010 3:41 AM, Cedric Jeanneret wrote: [...] >>> from cStringIO import StringIO [...] >>> f = StringIO(str(msg)) >>> h = HyperArch.HyperArchive(mlist) >>> h.processUnixMailbox(f) [..

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-03 Thread Mark Sapiro
On 3/2/2010 11:02 PM, Cedric Jeanneret wrote: > > Woops, right. it was commented out in my code. For now, I'm pocking > around with some other problems, such as my external archiver returns > a non-zero status. It seems to crash with the > h.processUnixMailbox(f) Is there any way to have a backtr

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-03 Thread Cedric Jeanneret
On Tue, 02 Mar 2010 11:34:25 -0800 Mark Sapiro wrote: > On 3/2/2010 3:41 AM, Cedric Jeanneret wrote: > > On Fri, 26 Feb 2010 10:15:13 -0800 > > Mark Sapiro wrote: > >> > >> At this point, you have a list object (locked) and a message object. You > >> might think you could just do > >> > >> mlist

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-02 Thread Cedric Jeanneret
On Tue, 02 Mar 2010 11:34:25 -0800 Mark Sapiro wrote: > On 3/2/2010 3:41 AM, Cedric Jeanneret wrote: > > On Fri, 26 Feb 2010 10:15:13 -0800 > > Mark Sapiro wrote: > >> > >> At this point, you have a list object (locked) and a message object. You > >> might think you could just do > >> > >> mlist

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-02 Thread Mark Sapiro
On 3/2/2010 3:41 AM, Cedric Jeanneret wrote: > On Fri, 26 Feb 2010 10:15:13 -0800 > Mark Sapiro wrote: >> >> At this point, you have a list object (locked) and a message object. You >> might think you could just do >> >> mlist.ArchiveMail(msg) >> >> to archive the mail to the listname.mbox file an

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-02 Thread Cedric Jeanneret
On Fri, 26 Feb 2010 10:15:13 -0800 Mark Sapiro wrote: > On 2/26/2010 4:20 AM, Cedric Jeanneret wrote: > > On Thu, 25 Feb 2010 17:08:06 -0800 Mark Sapiro > > wrote: > > > >> Cedric Jeanneret wrote: > >>> > >>> I'm trying to create a xapian[1] indexer for our mailing list. As > >>> mailman is wr

Re: [Mailman-Users] Indexing mail right after delivery

2010-02-27 Thread Cédric Jeanneret
On Fri, Feb 26, 2010 at 7:15 PM, Mark Sapiro wrote: > On 2/26/2010 4:20 AM, Cedric Jeanneret wrote: >> On Thu, 25 Feb 2010 17:08:06 -0800 Mark Sapiro >> wrote: >> >>> Cedric Jeanneret wrote: I'm trying to create a xapian[1] indexer for our mailing list. As mailman is written in Pyt

Re: [Mailman-Users] Indexing mail right after delivery

2010-02-26 Thread Mark Sapiro
On 2/26/2010 4:20 AM, Cedric Jeanneret wrote: > On Thu, 25 Feb 2010 17:08:06 -0800 Mark Sapiro > wrote: > >> Cedric Jeanneret wrote: >>> >>> I'm trying to create a xapian[1] indexer for our mailing list. As >>> mailman is written in Python and there are python bindings for >>> xapian, I guess I

Re: [Mailman-Users] Indexing mail right after delivery

2010-02-26 Thread Mark Sapiro
Cedric Jeanneret wrote: > >Thank you very much for your answer. I guess the "cleanest" way would be to >override the PUBLIC_EXTERNAL_ARCHIVER (we don't want to index our private for >now). I'll give it a try as soon as possible. >Do you think my script will interest some people ? if so, where sho

Re: [Mailman-Users] Indexing mail right after delivery

2010-02-26 Thread Cedric Jeanneret
On Thu, 25 Feb 2010 17:08:06 -0800 Mark Sapiro wrote: > Cedric Jeanneret wrote: > > > >I'm trying to create a xapian[1] indexer for our mailing list. As mailman is > >written in Python and there are python bindings for xapian, I guess I can > >maybe create a plugin for that. > >My first questio

Re: [Mailman-Users] Indexing mail right after delivery

2010-02-25 Thread Cedric Jeanneret
On Thu, 25 Feb 2010 17:08:06 -0800 Mark Sapiro wrote: > Cedric Jeanneret wrote: > > > >I'm trying to create a xapian[1] indexer for our mailing list. As mailman is > >written in Python and there are python bindings for xapian, I guess I can > >maybe create a plugin for that. > >My first questio

Re: [Mailman-Users] Indexing mail right after delivery

2010-02-25 Thread Mark Sapiro
Cedric Jeanneret wrote: > >I'm trying to create a xapian[1] indexer for our mailing list. As mailman is >written in Python and there are python bindings for xapian, I guess I can >maybe create a plugin for that. >My first question is : is there already such a thing ? I searched on the net, >but

[Mailman-Users] Indexing mail right after delivery

2010-02-25 Thread Cedric Jeanneret
Hello, I'm trying to create a xapian[1] indexer for our mailing list. As mailman is written in Python and there are python bindings for xapian, I guess I can maybe create a plugin for that. My first question is : is there already such a thing ? I searched on the net, but nothing appeared My sec