bpoaugust added the comment:

I believe that setting the file back to the start is probably the best solution.

The message as provided by e.g. postfix will include the From header and the 
parser is able to deal with that successfully, so I'm not sure why the mbox 
reader removes it before calling the parser. It only really needs to drop the 
trailing newline to ensure that the parser gets the same data.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31524>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to