potential bug in UnixMailbox method of Python

Sirshendu Rakshit sirshendurakshit at in.com
Wed Nov 12 22:35:38 EST 2008


Hi,I am using UnixMailbox to parse an mbox file. This mbox file starts with the following lines.From qtopic+errors at quicktopic.comTue May 18 01:43:12 2004>From qtopic+errors at quicktopic.comTue May 18 01:43:12 2004ReturnPath: XOriginalTo: jm at localhostDeliveredTo: jm at localhost.jmason.org.......Now what I am seeing is that the '>From qtopic+errors at quicktopic.comTue May 18 01:43:12 2004' line is being returned as mail header by UnixMailbox. Which is not the case. I am not sure whether this is a bug in UnixMailbox. Or is it not handled in Active Python 2.3.5.The http://www.qmail.org/man/man5/mbox.html link says that while reading a mbox the >Fromline should be stripped off.Please help me out. Sirshendu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081113/0e606ddd/attachment.html>


More information about the Python-list mailing list