On Wed 2003-12-24 (11:33), Simon White wrote:
> However there should be a way to parse the lines a bit better. The From
> lines usually contain a date (should be an RFC formatted date string,
> don't remember which RFC) and so on.

I found a reasonably simple solution to this, although it is probably
somewhat of a hack.  I've replaced references to PortableUnixMailbox in
Mailman/Mailbox.py with UnixMailbox.

Looking at the source code for the python mailbox modules,
PortableUnixMailbox simply checks that the first five characters of the line
are 'From ', while UnixMailbox does a long complicated regex.

This solution might not be portable (as its name suggests), but it seems to
work for our MTA (exim).  At least I don't have (no subject) in my archives
any more.

- Guy
-- 
Systems Manager, IT Division, Rhodes University, Grahamstown, South Africa
Email: [EMAIL PROTECTED]   Web: http://mombe.org/  IRC: [EMAIL PROTECTED]
*** ANSI Standard Disclaimer ***                                   J.A.P.H


------------------------------------------------------
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to