Karthikeyan Singaravelan <[email protected]> added the comment:
Is this a case of realname having @ inside an unquoted string? As I can see
from the RFC the acceptable characters of an atom other than alphabets and
digits that comprises a phrase are ['!', '#', '$', '%', '&', "'", '*', '+',
'-', '/', '=', '?', '^', '_', '`', '{', '|', '}', '~'] . So just curious if
it's a case of @ inside unquoted string as name?
>>> for char in accepted:
... print(parseaddr(f'John Doe jdoe{char}example.com <[email protected]>'))
...
('John Doe jdoe!example.com', '[email protected]')
('John Doe jdoe#example.com', '[email protected]')
('John Doe jdoe$example.com', '[email protected]')
('John Doe jdoe%example.com', '[email protected]')
('John Doe jdoe&example.com', '[email protected]')
("John Doe jdoe'example.com", '[email protected]')
('John Doe jdoe*example.com', '[email protected]')
('John Doe jdoe+example.com', '[email protected]')
('John Doe jdoe-example.com', '[email protected]')
('John Doe jdoe/example.com', '[email protected]')
('John Doe jdoe=example.com', '[email protected]')
('John Doe jdoe?example.com', '[email protected]')
('John Doe jdoe^example.com', '[email protected]')
('John Doe jdoe_example.com', '[email protected]')
('John Doe jdoe`example.com', '[email protected]')
('John Doe jdoe{example.com', '[email protected]')
('John Doe jdoe|example.com', '[email protected]')
('John Doe jdoe}example.com', '[email protected]')
('John Doe jdoe~example.com', '[email protected]')
>>> parseaddr('"John Doe [email protected]" <[email protected]>')
('John Doe [email protected]', '[email protected]')
>>> parseaddr('John Doe [email protected] <[email protected]>')
('', 'John Doe [email protected]')
----------
nosy: +xtreak
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34155>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com