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 m...@msapiro.net 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 Cedric Jeanneret
On Sun, 14 Mar 2010 17:38:16 -0700 Mark Sapiro m...@msapiro.net wrote: To follow up on this thread, there is now a FAQ at http://wiki.list.org/x/RAKJ 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

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 that it

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 http://wiki.list.org/x/RAKJ 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

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 m...@msapiro.net 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),

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 m...@msapiro.net 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),

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) msg =

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 archiver

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 m...@msapiro.net 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

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:

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 m...@msapiro.net wrote: On 3/2/2010 3:41 AM, Cedric Jeanneret wrote: On Fri, 26 Feb 2010 10:15:13 -0800 Mark Sapiro m...@msapiro.net wrote: At this point, you have a list object (locked) and a message object. You might think you could just

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 backtrace

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 m...@msapiro.net 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 Cédric Jeanneret
On Wed, Mar 3, 2010 at 4:44 PM, Mark Sapiro m...@msapiro.net wrote: On 3/3/2010 12:57 AM, Cedric Jeanneret wrote: On Tue, 02 Mar 2010 11:34:25 -0800 Mark Sapiro m...@msapiro.net wrote: On 3/2/2010 3:41 AM, Cedric Jeanneret wrote: [...] from cStringIO import StringIO [...] f =

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 tell()

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 m...@msapiro.net 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),

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 m...@msapiro.net wrote: On 2/26/2010 4:20 AM, Cedric Jeanneret wrote: On Thu, 25 Feb 2010 17:08:06 -0800 Mark Sapiro m...@msapiro.net wrote: Cedric Jeanneret wrote: I'm trying to create a xapian[1] indexer for our mailing list. As

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 m...@msapiro.net 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

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 m...@msapiro.net wrote: On 3/2/2010 3:41 AM, Cedric Jeanneret wrote: On Fri, 26 Feb 2010 10:15:13 -0800 Mark Sapiro m...@msapiro.net wrote: At this point, you have a list object (locked) and a message object. You might think you could just

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 m...@msapiro.net wrote: On 2/26/2010 4:20 AM, Cedric Jeanneret wrote: On Thu, 25 Feb 2010 17:08:06 -0800 Mark Sapiro m...@msapiro.net wrote: Cedric Jeanneret wrote: I'm trying to create a xapian[1] indexer for our mailing list. As mailman is

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 m...@msapiro.net 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

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 should I

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 m...@msapiro.net 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

[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

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

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 m...@msapiro.net 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