[issue20089] email.message_from_string no longer working in Python 3.4

R. David Murray report at bugs.python.org
Sat Dec 28 16:47:35 CET 2013


R. David Murray added the comment:

Nevermind, I failed to notice the message_from_string part of the traceback.

Different question: what are you doing with the message after you parse it?  It is not an RFC valid message if you parse it from a string, so the only way to make it produce an RFC valid output is if you emit it as a string *and* encode the output to utf-8.

I'll have to think about how this "should" work...a clearer error message may be the answer, but if so I suppose I'll need an actual deprecation period before shipping the charset fix for set_payload.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20089>
_______________________________________


More information about the Python-bugs-list mailing list