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 berker.peksag
Recipients barry, berker.peksag, jim_minter, r.david.murray
Date 2014-05-13.11:44:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399981488.92.0.493193998865.issue21492@psf.upfronthosting.co.za>
In-reply-to
Content
> >>> email.header.decode_header("foo")
> [('foo', None)]

email.header.decode_header() implements rfc-2047 and the "foo" header doesn't match the syntax described in rfc-2047 (see "2. Syntax of encoded-words").

See the code for more information:

* http://hg.python.org/cpython/file/default/Lib/email/header.py#l34
* http://hg.python.org/cpython/file/default/Lib/email/header.py#l81

See the "6.1. Recognition of 'encoded-word's in message headers" section at http://www.rfc-base.org/txt/rfc-2047.txt
History
Date User Action Args
2014-05-13 11:44:48berker.peksagsetrecipients: + berker.peksag, barry, r.david.murray, jim_minter
2014-05-13 11:44:48berker.peksagsetmessageid: <1399981488.92.0.493193998865.issue21492@psf.upfronthosting.co.za>
2014-05-13 11:44:48berker.peksaglinkissue21492 messages
2014-05-13 11:44:48berker.peksagcreate