cpython/Lib/test/test_email
jpic 8cb65d1381 bpo-34155: Dont parse domains containing @ (GH-13079)
Before:
    
        >>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses
        (Address(display_name='', username='a', domain='malicious.org'),)
    
        >>> parseaddr('a@malicious.org@important.com')
        ('', 'a@malicious.org')
    
    After:
    
        >>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses
        (Address(display_name='', username='', domain=''),)
    
        >>> parseaddr('a@malicious.org@important.com')
        ('', 'a@')




https://bugs.python.org/issue34155
2019-07-17 14:54:25 -07:00
..
data
__init__.py
__main__.py
test__encoded_words.py
test__header_value_parser.py bpo-34155: Dont parse domains containing @ (GH-13079) 2019-07-17 14:54:25 -07:00
test_asian_codecs.py
test_contentmanager.py
test_defect_handling.py
test_email.py bpo-34155: Dont parse domains containing @ (GH-13079) 2019-07-17 14:54:25 -07:00
test_generator.py
test_headerregistry.py bpo-21315: Fix parsing of encoded words with missing leading ws. (#13425) 2019-06-05 09:56:33 -07:00
test_inversion.py
test_message.py bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119) 2019-06-25 10:03:19 -07:00
test_parser.py
test_pickleable.py
test_policy.py Fix infinite loop in email folding logic (GH-12732) 2019-07-16 10:50:01 -07:00
test_utils.py
torture_test.py