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 invisibleroads
Recipients invisibleroads
Date 2010-11-29.04:58:57
SpamBayes Score 0.3508595
Marked as misclassified No
Message-id <1291006742.3.0.976657796626.issue10574@psf.upfronthosting.co.za>
In-reply-to
Content
email.header.decode_header fails for the following message subject:
::

    email.header.decode_header('=?UTF-8?B?MjAxMSBBVVRNIENBTEwgZm9yIE5PTUlO?==?UTF-8?B?QVRJT05TIG9mIFZQIGZvciBNZW1iZXJz?==?UTF-8?B?aGlw?=')


If the directives are removed and the padding problems are fixed, the subject parses correctly.
::

    email.header.decode_header('=?UTF-8?B?%s==?=' % '=?UTF-8?B?MjAxMSBBVVRNIENBTEwgZm9yIE5PTUlO?==?UTF-8?B?QVRJT05TIG9mIFZQIGZvciBNZW1iZXJz?==?UTF-8?B?aGlw?='.replace('=?UTF-8?B?', '').replace('?', '').replace('=', ''))
History
Date User Action Args
2010-11-29 04:59:02invisibleroadssetrecipients: + invisibleroads
2010-11-29 04:59:02invisibleroadssetmessageid: <1291006742.3.0.976657796626.issue10574@psf.upfronthosting.co.za>
2010-11-29 04:58:57invisibleroadslinkissue10574 messages
2010-11-29 04:58:57invisibleroadscreate