[issue34155] email.utils.parseaddr mistakenly parse an email
Kal Sze
report at bugs.python.org
Thu Nov 8 03:23:11 EST 2018
Kal Sze <swordangel at gmail.com> added the comment:
Another failure case:
>>> from email.utils import parseaddr
>>> parseaddr('fo at o@bar.com')
('', 'fo at o')
If I understand the RFC correctly, the correct results should be ('', '') because there are two '@' signs. The first '@' would need to be quoted for the address to be valid.
----------
nosy: +Kal Sze2
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34155>
_______________________________________
More information about the Python-bugs-list
mailing list