[issue11728] mbox parser incorrect behaviour

R. David Murray report at bugs.python.org
Thu Mar 31 16:13:50 CEST 2011

R. David Murray <rdmurray at bitdance.com> added the comment:

All the references I could find talk about triggering the match without the proceeding newline.  That is, it is not certain that a blank line will precede the 'From ' header, and the typical quoting rules for mbox format call for any 'From ' at the start of a line (whether preceded by a blank line or not) to be quoted.  This might have something to do with the fact that otherwise you have to special case the first line of the mbox, but I don't really know.

What tool are you using that is producing the unquoted 'From ' lines in your mbox?  I know there are variants on the mbox format, so if one of them has the format you propose, this would become a feature request to support that variant mbox format.

nosy: +r.david.murray

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list