jpic <[email protected]> added the comment:
The pull request has been updated to mimic net/mail's behavior rather than
trying to workaround user input.
Before:
>>> email.message_from_string('From: [email protected]@important.com',
policy=email.policy.default)['from'].addresses
(Address(display_name='', username='a', domain='malicious.org'),)
>>> parseaddr('[email protected]@important.com')
('', '[email protected]')
After:
>>> email.message_from_string('From: [email protected]@important.com',
policy=email.policy.default)['from'].addresses
(Address(display_name='', username='', domain=''),)
>>> parseaddr('[email protected]@important.com')
('', 'a@')
I like what I saw under the hood, please feel free to hack me for other
tasks in the email stdlib.
----------
_______________________________________
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