[issue3169] email/header.py doesn't handle Base64 headers that have been insufficiently padded.
New submission from Jason Williams <[EMAIL PROTECTED]>: email/header.py:decode_header() Line 95: dec = email.base64mime.decode(encoded) Headers that contain Subject or From headers which are Base64 encoded and are insufficiently padded raise a HeaderParseError. The actual padding error is begin generated in binascii.a2b_base64 and bubbling up as a HeaderParseError in header.py. decode_header() should detect the padding error (Base64 text length does not evenly divide by 3) and automatically add padding before handing off to a2b_base64. The problem usually occurs with spam. Example problem header: Subject: =?iso-8859-1?B? UHJldmVudCBGb3JlY2xvc3VyZSAmIFNhdmUgWW91ciBIb21lIA=?= Properly Padded: Subject: =?iso-8859-1?B? UHJldmVudCBGb3JlY2xvc3VyZSAmIFNhdmUgWW91ciBIb21lIA==?= -- components: Library (Lib) messages: 68553 nosy: jasonjwwilliams severity: normal status: open title: email/header.py doesn't handle Base64 headers that have been insufficiently padded. type: behavior versions: Python 2.5 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3169> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17681] Work with an extra field of gzip and zip files
Jason Williams added the comment: What's needed to get this integrated? It will be great to not have to fork the GZIP. -- nosy: +Jason Williams ___ Python tracker <https://bugs.python.org/issue17681> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42983] sys.argv incorrectly parses command lines with args in environment variables.
New submission from Jason Williams : Passing arguments to a Python script using an environment variable like: export en_auth="--arg1 test --arg2 \"$(https://bugs.python.org/file49753/test.py ___ Python tracker <https://bugs.python.org/issue42983> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42983] sys.argv incorrectly parses command lines with args in environment variables.
Change by Jason Williams : -- components: +Library (Lib) type: -> behavior ___ Python tracker <https://bugs.python.org/issue42983> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42983] sys.argv incorrectly parses command lines with args in environment variables.
Change by Jason Williams : Added file: https://bugs.python.org/file49754/private_key.pem ___ Python tracker <https://bugs.python.org/issue42983> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3169] email/header.py doesn't handle Base64 headers that have been insufficiently padded.
Jason Williams added the comment: I'd argue that since the recipient has little control over incorrect header padding, the traditional approach with e-mail is to fix-up bad encoding...and this ia bug. -- ___ Python tracker <http://bugs.python.org/issue3169> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com