bpoaugust added the comment:

https://github.com/python/cpython/blob/master/Lib/mailbox.py#L778

The code here reads the first line, but fails to save it as the unixfrom line.

Alternatively perhaps it should reset the file back to the start so the message 
factory has sight of the envelope.

The end result is that the envelope is lost.

----------
title: _mboxMMDF.get_string() fails to pass param to get_bytes() -> 
mailbox._mboxMMDF.get_message throws away From envelope

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

Reply via email to