summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-05-26 18:31:12 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-05-26 18:31:12 (GMT)
commit032eed3c4a42ca29de2c07fba2e0555eaff1700c (patch)
tree61a12aaf27af7c9a8a024bb2625c888226c6681c /Parser
parentd785cb3955e61098056a237b6f322bdda1461aa0 (diff)
downloadcpython-032eed3c4a42ca29de2c07fba2e0555eaff1700c.zip
cpython-032eed3c4a42ca29de2c07fba2e0555eaff1700c.tar.gz
cpython-032eed3c4a42ca29de2c07fba2e0555eaff1700c.tar.bz2
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 'Parser')
0 files changed, 0 insertions, 0 deletions