[issue32179] Empty email address in headers triggers an IndexError

R. David Murray report at bugs.python.org
Tue Jul 9 21:03:23 EDT 2019


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

BareQuotedString implies the new API is being used, though that was not made clear in the report.  However, unlike the other recently closed issue, this one was in fact fixed (and I have a vague memory of reviewing the PR):

>>> m = message_from_string('ReplyTo: ""', policy=default)
>>> m['ReplyTo']
'""'

----------

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


More information about the Python-bugs-list mailing list