[issue9124] Mailbox module should use binary I/O, not text I/O

R. David Murray report at bugs.python.org
Fri Jan 28 20:12:46 CET 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

What is the data type returned by your get_msg?  I bet it is string, and email can't handle messages in string format that have non-ASCII characters (I'm adding an explicit error message for this).  You either need to use a Message object, or, more likely in your case, change the return type of get_msg to be bytes.

----------

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


More information about the Python-bugs-list mailing list