Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

email.header decode within word #44155

Closed
tkikuchi mannequin opened this issue Oct 22, 2006 · 3 comments
Closed

email.header decode within word #44155

tkikuchi mannequin opened this issue Oct 22, 2006 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@tkikuchi
Copy link
Mannequin

tkikuchi mannequin commented Oct 22, 2006

BPO 1582282
Nosy @warsaw

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/warsaw'
closed_at = <Date 2007-03-14.12:58:00.000>
created_at = <Date 2006-10-22.13:16:35.000>
labels = ['library']
title = 'email.header decode within word'
updated_at = <Date 2007-03-14.12:58:00.000>
user = 'https://bugs.python.org/tkikuchi'

bugs.python.org fields:

activity = <Date 2007-03-14.12:58:00.000>
actor = 'barry'
assignee = 'barry'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2006-10-22.13:16:35.000>
creator = 'tkikuchi'
dependencies = []
files = []
hgrepos = []
issue_num = 1582282
keywords = []
message_count = 3.0
messages = ['30352', '30353', '30354']
nosy_count = 2.0
nosy_names = ['barry', 'tkikuchi']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1582282'
versions = ['Python 2.5']

@tkikuchi
Copy link
Mannequin Author

tkikuchi mannequin commented Oct 22, 2006

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)]

@tkikuchi tkikuchi mannequin closed this as completed Oct 22, 2006
@tkikuchi tkikuchi mannequin assigned warsaw Oct 22, 2006
@tkikuchi tkikuchi mannequin added the stdlib Python modules in the Lib dir label Oct 22, 2006
@tkikuchi tkikuchi mannequin closed this as completed Oct 22, 2006
@warsaw
Copy link
Member

warsaw commented Mar 14, 2007

r54370 for Python 2.5
r54371 for Python 2.6

@warsaw
Copy link
Member

warsaw commented Mar 14, 2007

Whoops! Resolution should have been "Fixed"

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant