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 Alex Corcoles, barry, r.david.murray, xtreak
Date 2018-10-10.22:05:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The new policies *make* the email library that higher level library, that was pretty much the whole point :)  I don't know how to make getting the fully decoded subject more intuitive than:


The fact that you have to specify a policy is due to backward compatibility concerns, and there's not really any way around that.  That's the only difference between your two examples (other than the fact that the second one does what you want :).

Note that you *really* want to be using message_from_bytes, and for email either policy.default or policy.SMTP.  This *is* documented in the python3 docs.  If you don't find them clear, then an issue to improve the docs would be welcome.

Since python2 is approaching EOL, we could also start transitioning to policy.default actually being the *default*.  That will take two release cycles (one that will generate a deprecation notice that the default is going to change, and another that will actually make the change).
Date User Action Args
2018-10-10 22:05:12r.david.murraysetrecipients: + r.david.murray, barry, Alex Corcoles, xtreak
2018-10-10 22:05:12r.david.murraysetmessageid: <>
2018-10-10 22:05:12r.david.murraylinkissue34954 messages
2018-10-10 22:05:12r.david.murraycreate