Staging
v0.5.1
https://github.com/python/cpython
Revision 63563cdf9d3afe0bdffaece7b92b0a56d2360397 authored by R. David Murray on 18 December 2010, 18:25:38 UTC, committed by R. David Murray on 18 December 2010, 18:25:38 UTC
Such addresses are not RFC compliant except under the 'obsolete syntax'
rules, but before this fix the whitespace was dropped from the input,
concatenating the pieces.  That breaks one of the principles of the
email package, that of preserving the input as much as possible.
It also denies the application program the opportunity to apply its
own heuristics to interpretation of such non-compliant addresses.

It is possible users of the email package were depending on the local
part always being a single token, so this fix will not be backported.
1 parent 2b37ce7
History
Tip revision: 63563cdf9d3afe0bdffaece7b92b0a56d2360397 authored by R. David Murray on 18 December 2010, 18:25:38 UTC
#9286: Fix the rfc822 parser to preserve whitespace in address local part.
Tip revision: 63563cd
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.bzrignore -rw-r--r-- 556 bytes
.gitignore -rw-r--r-- 566 bytes
.hgeol -rw-r--r-- 503 bytes
.hgignore -rw-r--r-- 771 bytes
.hgtags -rw-r--r-- 4.0 KB
LICENSE -rw-r--r-- 14.2 KB
Makefile.pre.in -rw-r--r-- 41.5 KB
README -rw-r--r-- 6.4 KB
configure -rwxr-xr-x 395.7 KB
configure.in -rw-r--r-- 121.7 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 33.7 KB
setup.py -rw-r--r-- 78.3 KB

README

back to top