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

2021-12-13 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> from email.header import decode_header >>> decode_header('=?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU_xkcmluZzNwLmpwZw==?=') Traceback (most recent call last): File "/Users/iritkatriel/src/cpython-1/Lib/email/header.py", line 126,

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

2014-04-23 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2014-04-17 Thread R. David Murray
R. David Murray added the comment: The patch looks good. I'd like the comment to say "We use urlsafe_b64decode here because some mailers apparently use the urlsafe b64 alphabet, and urlsafe_b64decode will correctly decode both the urlsafe and regular alphabets". Also, the new header parser do

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

2014-04-17 Thread Christian Theune
Changes by Christian Theune : -- keywords: +patch Added file: http://bugs.python.org/file34943/62b280b61de7.diff ___ Python tracker ___ __

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

2014-04-17 Thread Christian Theune
Changes by Christian Theune : Added file: http://bugs.python.org/file34944/732e7d4515c0.diff ___ Python tracker ___ ___ Python-bugs-list maili

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

2014-04-17 Thread Christian Theune
Changes by Christian Theune : -- hgrepos: +240 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

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

2014-04-17 Thread Christian Theune
Changes by Christian Theune : -- hgrepos: +239 versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2014-04-17 Thread Christian Theune
Christian Theune added the comment: So, in addition to "+/" and "-_" there are quite a few base64 variants. Worst thing: there are the two ambigious variants "-_" and "_-", even though "_-" supposedly is "non-standard" for its use. See http://en.wikipedia.org/wiki/Base64 The shortest fix I ca

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

2013-04-19 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2011-07-05 Thread Thomas Guettler
Thomas Guettler added the comment: I received this email. Here is the creator: X-Mailer: CommuniGate Pro MAPI Connector 1.52.53.10/1.53.10.1 -- ___ Python tracker ___ _

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

2011-07-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This gives the correct result: decode_header('=?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU/xkcmluZzNwLmpwZw==?=') (I replaced _ with /) The header was probably generated by a variant of the base64 encoding, like this one: http://www.doughellmann.com/

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

2011-07-04 Thread Thomas Guettler
Thomas Guettler added the comment: This happens on Python3: root@ubuntu1004devel64:~# python3 Python 3.1.2 (r312:79147, Sep 27 2010, 09:57:50) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from email.header import decode_header >>> decode_heade

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

2011-07-04 Thread Thomas Guettler
New submission from Thomas Guettler : from email.header import decode_header decode_header('=?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU_xkcmluZzNwLmpwZw==?=') Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.6/email/header.py", line 101, in decode_header