Merge: #16983: Apply postel's law to encoded words inside quoted strings.

This commit is contained in:
R David Murray 2014-02-08 13:13:01 -05:00
commit 01e46ee7e2
4 changed files with 29 additions and 0 deletions

View file

@ -1155,6 +1155,16 @@ class TestAddressHeader(TestHeaderBase):
'example.com',
None),
'rfc2047_atom_in_quoted_string_is_decoded':
('"=?utf-8?q?=C3=89ric?=" <foo@example.com>',
[errors.InvalidHeaderDefect],
'Éric <foo@example.com>',
'Éric',
'foo@example.com',
'foo',
'example.com',
None),
}
# XXX: Need many more examples, and in particular some with names in