[issue34155] email.utils.parseaddr mistakenly parse an email

R. David Murray report at bugs.python.org
Tue Nov 6 14:24:59 EST 2018


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

The formatting of that doctest paragraph got messed up.  Let me try again:

    >>> m = message_from_string("From: John Doe jdoe at example.com <other at example.net>\n\n", policy=default)
    >>> m['From'].addresses
    (Address(display_name='', username='John Doe jdoe', domain='example.com'),)

----------

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


More information about the Python-bugs-list mailing list