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: email.utils.formataddr incorrectly quotes parens inside quoted strings
Type: behavior Stage: resolved
Components: Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: r.david.murray Nosy List: python-dev, r.david.murray
Priority: normal Keywords: patch

Created on 2011-08-22 13:45 by r.david.murray, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
formataddr_paren_test.patch r.david.murray, 2011-08-22 13:45 review
formataddr_paren_quote.patch r.david.murray, 2011-08-22 14:37 review
Messages (3)
msg142725 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-08-22 13:45
The attached test case fails.
msg142728 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-08-22 14:37
Hmm.  The output of formataddr is not actually incorrect, it just overquotes compared to what is required by the RFC.  Attached is a fix, but since this isn't technically an RFC bug, I'm removing 3.2 and 2.7 from versions.
msg155783 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-03-14 19:32
New changeset ec191c51a15f by R David Murray in branch 'default':
#12818: remove escaping of () in quoted strings in formataddr
http://hg.python.org/cpython/rev/ec191c51a15f
History
Date User Action Args
2022-04-11 14:57:21adminsetgithub: 57027
2012-03-14 19:34:12r.david.murraysetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2012-03-14 19:32:51python-devsetnosy: + python-dev
messages: + msg155783
2011-08-22 14:37:43r.david.murraysetfiles: + formataddr_paren_quote.patch
versions: - Python 2.7, Python 3.2
messages: + msg142728

keywords: - easy
type: behavior
stage: patch review
2011-08-22 13:45:43r.david.murraycreate