[issue32144] email.policy.SMTP and SMTPUTF8 doesn't honor linesep's value

R. David Murray report at bugs.python.org
Mon Nov 27 16:54:53 EST 2017


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

Your are reading the documentation wrong.  For linesep, it says "The string to be used to terminate lines in serialized output."  The key word there is "output".  email operates in "universal newline mode" when parsing messages, turning all line endings into python's internal \n format.  What the linesep policy controls is the *output* line separator.

Note that the python2 behavior for decode=True is arguably a bug, but not one we are going to fix for backward compatibility reasons.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32144>
_______________________________________


More information about the Python-bugs-list mailing list