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 <rep...@bugs.python.org>
<http://bugs.python.org/issue20089>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to