classification
Title: email.header decode within word
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
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 2007-03-14 12:58 by barry. 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:
http://sourceforge.net/tracker/index.php?func=detail&aid=1578539&group_id=103&atid=100103

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.

Sm=?ISO-8859-1?B?9g==?=rg=?ISO-8859-1?B?5Q==?=sbord
should be parsed as
[('Sm=?ISO-8859-1?B?9rg==?=g=?ISO-8859-1?B?5Q==?=sbord',
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"
History
Date User Action Args
2006-10-22 13:16:35tkikuchicreate