diff options
| author | R David Murray <rdmurray@bitdance.com> | 2012-05-26 14:31:12 -0400 |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2012-05-26 14:31:12 -0400 |
| commit | 032eed3c4a42ca29de2c07fba2e0555eaff1700c (patch) | |
| tree | 61a12aaf27af7c9a8a024bb2625c888226c6681c /Lib/mimetypes.py | |
| parent | d785cb3955e61098056a237b6f322bdda1461aa0 (diff) | |
| download | cpython-git-032eed3c4a42ca29de2c07fba2e0555eaff1700c.tar.gz | |
Recognize '<>' as a special case of an angle-addr in header_value_parser.
Although '<>' is invalid according to RFC 5322, SMTP uses it for various
things, and it sometimes ends up in email headers. This patch changes
get_angle_addr to recognize it and just register a Defect instead of raising a
parsing error.
Diffstat (limited to 'Lib/mimetypes.py')
0 files changed, 0 insertions, 0 deletions
