[New-bugs-announce] [issue9967] encoded_word regular expression in email.header.decode_header()

Tokio Kikuchi report at bugs.python.org
Tue Sep 28 03:57:46 CEST 2010


New submission from Tokio Kikuchi <tkikuchi at 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 <report at bugs.python.org>
<http://bugs.python.org/issue9967>
_______________________________________


More information about the New-bugs-announce mailing list