New submission from Atsuo Ishimoto <[EMAIL PROTECTED]>: email.Header.decode_header() doesn't work if encoded-word was separeted by CRLF.
For exmaple, decode_header('=?iso-8859-1?q?hello?=\r\n world.') returns [('=?iso-8859-1?q?hello?=\r\n world.', None)], not [('hello', 'iso-8859-1'), (' world.', None)]. This bug was caused by rev.54371, bug #1582282. I attached a patch to fix problem and test-case. ---------- components: Library (Lib) files: email.patch keywords: patch messages: 76755 nosy: ishimoto severity: normal status: open title: email.Header.decode_header() doesn't work if encoded-word was separeted by CRLF type: behavior versions: Python 2.5, Python 2.6 Added file: http://bugs.python.org/file12196/email.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4491> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com