This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients andrei.avk, barry, elenril, r.david.murray
Date 2021-07-06.16:59:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625590796.01.0.479491431973.issue39100@roundup.psfhosted.org>
In-reply-to
Content
How are you encountering this error?  The following program runs without exception for me on master:

from email import message_from_binary_file
from email.policy import SMTP

msg = message_from_binary_file(open('mail.eml', 'rb'), policy=SMTP)
print(msg)
History
Date User Action Args
2021-07-06 16:59:56r.david.murraysetrecipients: + r.david.murray, barry, elenril, andrei.avk
2021-07-06 16:59:56r.david.murraysetmessageid: <1625590796.01.0.479491431973.issue39100@roundup.psfhosted.org>
2021-07-06 16:59:56r.david.murraylinkissue39100 messages
2021-07-06 16:59:55r.david.murraycreate