Message367117
Yeah, that looks like a bug in the old API. If you try the new API, it does the right thing. To do that, import email.policy and make your message_as_string call:
email.message_from_string(raw, policy=email.policy.default)
Note, however, that you really ought to be using message_from_bytes. Serialized email messages are bytes, not unicode, and using message_from_string will get you in to other trouble.
I don't know if it is worth fixing the old API. |
|
Date |
User |
Action |
Args |
2020-04-23 14:33:02 | r.david.murray | set | recipients:
+ r.david.murray, barry, matt-davis |
2020-04-23 14:33:02 | r.david.murray | set | messageid: <1587652382.08.0.671940827619.issue40359@roundup.psfhosted.org> |
2020-04-23 14:33:01 | r.david.murray | link | issue40359 messages |
2020-04-23 14:33:01 | r.david.murray | create | |
|