This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author trrhodes
Recipients barry, konstantin2, r.david.murray, trrhodes
Date 2020-12-30.16:47:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609346852.48.0.425807535798.issue42787@roundup.psfhosted.org>
In-reply-to
Content
Hi Konstantin,

Thanks for raising this issue. It appears the field provided in your example does not conform to RFC 2822 followed by this email library. Square brackets are treated as special characters in [section 3.2.1](https://tools.ietf.org/html/rfc2822#section-3.2.1), which is handled in the [_parseaddr](https://github.com/python/cpython/blob/master/Lib/email/_parseaddr.py#L219) file.

The above combined with the fact that any [failed parsing returns an two-tuple of ('', '')](https://github.com/python/cpython/blob/master/Lib/email/utils.py#L212) I believe explains the behavior observed.
History
Date User Action Args
2020-12-30 16:47:32trrhodessetrecipients: + trrhodes, barry, r.david.murray, konstantin2
2020-12-30 16:47:32trrhodessetmessageid: <1609346852.48.0.425807535798.issue42787@roundup.psfhosted.org>
2020-12-30 16:47:32trrhodeslinkissue42787 messages
2020-12-30 16:47:32trrhodescreate