R. David Murray rdmur...@bitdance.com added the comment:
Fix committed to py3k in r85179, 3.1 in r85170, and 2.7 in r85181. I modified
the unit tests, deleting the ones that were redundant because they were just
two different python spellings of the same input string, and adding a comment
R. David Murray rdmur...@bitdance.com added the comment:
It does appear as though parseaddr is dropping quoting information from the
returned parsed address. Fixing this is likely to create backward
compatibility issues, and I'm very curious to know why parseaddr drops the
quoting info.
R. David Murray rdmur...@bitdance.com added the comment:
After working my way through the code I no longer think that parseaddr is
working as designed. I think that this is a bug, and that there is a missing
call to quote in getaddrspec. Attached is a revised set of unit tests and a
fix.
Jeffrey Finkelstein jeffrey.finkelst...@gmail.com added the comment:
I can confirm this bug. Attached is the test case.
--
keywords: +patch
nosy: +jfinkels
Added file: http://bugs.python.org/file19079/issue1050268.testcase.patch
___
Python tracker
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1050268
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1050268
___
Changes by Daniel Diniz aja...@gmail.com:
--
stage: - test needed
title: rfc822.parseaddr is broken, breaks sendmail call in smtplib -
rfc822.parseaddr is broken, breaks sendmail call in smtplib
type: - behavior
versions: +Python 2.6 -Python 2.4