This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: email.header decode within word
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, tkikuchi
Priority: normal Keywords:

Created on 2006-10-22 13:16 by tkikuchi, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg30352 - (view) Author: Tokio Kikuchi (tkikuchi) Date: 2006-10-22 13:16
The problem is filed in mailman bug report:

While Microsoft Entourage's way of encoding iso-8859-1
text is not compliant with RFC-2047, Python
email.header.decode_header should treat this 'word' as
a simple us-ascii string and should not parse into
series of string/charset list.

should be parsed as
None)], not as [('Sm', None), ('\xf6', 'iso-8859-1'),
('g', None), ('\xe5', 'iso-8859-1'), ('sbord', None)]

msg30353 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2007-03-14 05:00
r54370 for Python 2.5
r54371 for Python 2.6
msg30354 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2007-03-14 12:58
Whoops!  Resolution should have been "Fixed"
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 44155
2006-10-22 13:16:35tkikuchicreate