New submission from Tokio Kikuchi <tkiku...@users.sourceforge.net>:

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

----------
components: Library (Lib)
files: email_header_ecrefix.patch
keywords: patch
messages: 117500
nosy: tkikuchi
priority: normal
severity: normal
status: open
title: encoded_word regular expression in email.header.decode_header()
versions: Python 2.5, Python 2.6, Python 2.7
Added file: http://bugs.python.org/file19041/email_header_ecrefix.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9967>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to