Message122772
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('=', '')) |
|
| Date |
User |
Action |
Args |
| 2010-11-29 04:59:02 | invisibleroads | set | recipients:
+ invisibleroads |
| 2010-11-29 04:59:02 | invisibleroads | set | messageid: <[email protected]> |
| 2010-11-29 04:58:57 | invisibleroads | link | issue10574 messages |
| 2010-11-29 04:58:57 | invisibleroads | create | |
|