Message127357
email.utils.getaddresses behaves wrong in following folding cases (outer single quote is not a part of value):
'"A\r\n (B)" <c@d.org>'
'(A\r\n C) <d@e.org>'
The misbehavior occurs in at least 2.6, 2.7 and branches/py3k.
Both these strings are RFC 2822 compliant, but current getaddresses() implementation misbehaves on 'quoted-string' and 'comment' containing CRLF.
Following references the related RFC sections:
http://tools.ietf.org/html/rfc2822#section-3.4
http://tools.ietf.org/html/rfc2822#section-3.2.5
Attachment contains tests and patch for the case. |
|
Date |
User |
Action |
Args |
2011-01-28 22:30:02 | Ivan.Egorov | set | recipients:
+ Ivan.Egorov |
2011-01-28 22:30:02 | Ivan.Egorov | set | messageid: <1296253802.55.0.925837101087.issue11050@psf.upfronthosting.co.za> |
2011-01-28 22:30:01 | Ivan.Egorov | link | issue11050 messages |
2011-01-28 22:30:01 | Ivan.Egorov | create | |
|