[issue12489] email.errors.HeaderParseError if base64url is used

Thomas Guettler report at bugs.python.org
Mon Jul 4 16:38:20 CEST 2011


New submission from Thomas Guettler <guettli at thomas-guettler.de>:

from email.header import decode_header
decode_header('=?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU_xkcmluZzNwLmpwZw==?=')

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.6/email/header.py", line 101, in decode_header
    raise HeaderParseError
email.errors.HeaderParseError

thunderbird is able to decode the header:
"Anmeldung Netzanschluss Südring3p.jpg"

According to Peter Otten base64url encoding was used:

My question in the newsgroup:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/9cf9ccd4109481cc/9f76bd627676b5f1?show_docid=9f76bd627676b5f1

----------
components: Library (Lib)
messages: 139776
nosy: guettli
priority: normal
severity: normal
status: open
title: email.errors.HeaderParseError if base64url is used
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12489>
_______________________________________


More information about the Python-bugs-list mailing list