homepage

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.

classification
Title: encoded_word regular expression in email.header.decode_header()
Type: behavior Stage: patch review
Components: email, Library (Lib) Versions: Python 3.1, Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: barry, r.david.murray, tkikuchi
Priority: normal Keywords: patch

Created on 2010年09月28日 01:57 by tkikuchi, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
email_header_ecrefix.patch tkikuchi, 2010年09月28日 01:57 regex fix for encoded_word in email.header.py
Messages (2)
msg117500 - (view) Author: Tokio Kikuchi (tkikuchi) Date: 2010年09月28日 01:57
Regular expression ecre for RFC2047 encoded_word in email.header module have bugs:
1. encoded_word should be separated by SPACEs in both leading and trailing ends. Current expression take care only trailing end.
2. encoded_text in the third part of encoded_word should not include literal ? or SPACE.
Also, ecre should not match against multiline.
The patch includes two test cases for test/test_email.py
msg162236 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012年06月03日 22:08
Instead of doing this we've opted to follow postel and be generous in what we accept and go ahead and decode even if the leading and/or terminating space is missing (see issue 1079).
History
Date User Action Args
2022年04月11日 14:57:07adminsetgithub: 54176
2012年06月03日 22:08:01r.david.murraysetstatus: open -> closed
resolution: rejected
messages: + msg162236
2012年05月16日 01:58:16r.david.murraysetassignee: r.david.murray ->
components: + email
2011年03月14日 03:31:18r.david.murraysetversions: + Python 3.3
2010年12月27日 18:28:16r.david.murraysetversions: + Python 3.1, Python 3.2
2010年12月14日 18:59:10r.david.murraysettype: behavior
2010年10月23日 20:39:21r.david.murraysetassignee: r.david.murray
2010年09月28日 07:43:00ned.deilysetnosy: + barry, r.david.murray
stage: patch review

versions: - Python 2.6, Python 2.5
2010年09月28日 01:57:44tkikuchicreate

AltStyle によって変換されたページ (->オリジナル) /