[issue37532] email.header.make_header() doesn't work if any `ascii` code is out of range(128)

R. David Murray report at bugs.python.org
Thu Aug 1 08:42:01 EDT 2019


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

The input header is not valid (non-ascii is not allowed in headers), so you shouldn't expect make_header to do anything sensible.  Note that this is the legacy API, which is a toolkit and does not hold your hand when it comes to RFC compliance.  Aside from any other concerns, this is long standing behavior (it is the same in python2), and it doesn't make sense to change the behavior of a legacy API.

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

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


More information about the Python-bugs-list mailing list