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 andreitroiebbc
Recipients andreitroiebbc, barry, r.david.murray
Date 2019-09-23.10:13:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569233583.03.0.660629818712.issue38232@roundup.psfhosted.org>
In-reply-to
Content
As far as I understand it, this is due to the following code in email.headerregistry.Address.addr_spec (in 3.8 and below):

if len(nameset) > len(nameset-parser.DOT_ATOM_ENDS):
    lp = parser.quote_string(self.username)

or, in the current version on master:

lp = self.username
if not parser.DOT_ATOM_ENDS.isdisjoint(lp):
    lp = parser.quote_string(lp)

Both of these tests will not work with the empty string since the empty string is always disjoint from anything, so it will never get quoted.
History
Date User Action Args
2019-09-23 10:13:03andreitroiebbcsetrecipients: + andreitroiebbc, barry, r.david.murray
2019-09-23 10:13:03andreitroiebbcsetmessageid: <1569233583.03.0.660629818712.issue38232@roundup.psfhosted.org>
2019-09-23 10:13:03andreitroiebbclinkissue38232 messages
2019-09-23 10:13:02andreitroiebbccreate