classification
Title: Encoded words in structured headers are not decoded by the new parser.
Type: behavior Stage: resolved
Components: email Versions: Python 3.4, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Tim.Rawlinson, barry, python-dev, r.david.murray
Priority: normal Keywords:

Created on 2013-07-11 20:10 by r.david.murray, last changed 2013-07-12 20:06 by r.david.murray. This issue is now closed.

Messages (3)
msg192897 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-07-11 20:10
The subject says it all, but here is an example (from issue 18044):

   >>> msg = message_from_string('To: =?utf-8?q?Eric?= <foo@example.com>\n\n', policy=default)
   >>> msg['To']
   '=?utf-8?q?Eric?= <foo@example.com>'
msg192963 - (view) Author: Roundup Robot (python-dev) Date: 2013-07-12 20:05
New changeset 1f3c57ac07ed by R David Murray in branch '3.3':
#18431: Decode encoded words in atoms in new email parser.
http://hg.python.org/cpython/rev/1f3c57ac07ed

New changeset 0c161b360ffe by R David Murray in branch 'default':
Merge: #18431: Decode encoded words in atoms in new email parser.
http://hg.python.org/cpython/rev/0c161b360ffe
msg192964 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-07-12 20:06
Fixed.  Thanks for the report, Tim.
History
Date User Action Args
2013-07-12 20:06:18r.david.murraysetstatus: open -> closed
resolution: fixed
messages: + msg192964

stage: needs patch -> resolved
2013-07-12 20:05:18python-devsetnosy: + python-dev
messages: + msg192963
2013-07-11 20:10:18r.david.murraycreate