This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pi314159
Recipients barry, pi314159, r.david.murray
Date 2017-02-28.18:32:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488306748.36.0.996484861833.issue29678@psf.upfronthosting.co.za>
In-reply-to
Content
email.Message class has method get_params() that can decode(unquote) header values in compliance with RFC2231 and RFC2047. But if in email message exists multiple headers with the same key it can't be used to decode other headers than first.
In my application I could use: 
   headers = message.items() 
   for key, value in headers:
       cleanValue = message.get_params(value=value)
       print(key, cleanValue)
Also have posted question on stackoverflow:
http://stackoverflow.com/questions/42502312/python-3-email-package-how-decode-given-header-value
History
Date User Action Args
2017-02-28 18:32:28pi314159setrecipients: + pi314159, barry, r.david.murray
2017-02-28 18:32:28pi314159setmessageid: <1488306748.36.0.996484861833.issue29678@psf.upfronthosting.co.za>
2017-02-28 18:32:28pi314159linkissue29678 messages
2017-02-28 18:32:28pi314159create