[issue16983] header parsing could apply postel's law to encoded words inside quotes

2014-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1dcb9d0d53a6 by R David Murray in branch '3.3': #16983: Apply postel's law to encoded words inside quoted strings. http://hg.python.org/cpython/rev/1dcb9d0d53a6 New changeset 5f7e626730df by R David Murray in branch 'default': Merge: #16983: Apply

[issue16983] header parsing could apply postel's law to encoded words inside quotes

2014-02-08 Thread R. David Murray
R. David Murray added the comment: The old header parsing code already decodes these, although it gets the spacing wrong if you do the standard str(make_header(decode_header(x))) dance. The fix for the new header parsing code only handles the specific case of only encoded words surrounded by

[issue16983] header parsing could apply postel's law to encoded words inside quotes

2013-01-16 Thread R. David Murray
New submission from R. David Murray: It has come to my attention that at least some mail agents apply postel's law to addresses like the following: From: =?utf-8?Q?not_really_valid?= f...@example.com Since encountering something that looks like an encoded word but that is not is a very