[Mailman-Users] Indexing mail right after delivery
Mark Sapiro
mark at msapiro.net
Wed Mar 3 16:44:54 CET 2010
On 3/3/2010 12:57 AM, Cedric Jeanneret wrote:
> On Tue, 02 Mar 2010 11:34:25 -0800
> Mark Sapiro <mark at 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)
[...]
>
> Hmm, it seems it crashes in pipermail.py, in function processUnixMailbox:
> we have a
> pos = input.tell() on line 564, but unfortunately "input" does NOT have any "tell()" method...
> It returns a "41" status.
Something is strange. The input object in 'pos = input.tell()' is the
StringIO instance you passed as 'f', and StringIO objects do have a tell
method. Also, the above code snippet is exactly what the builtin
archiver uses, and I tested it and it worked for me.
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list