[issue9286] email.utils.parseaddr returns garbage for invalid input

R. David Murray report at bugs.python.org
Sat Dec 18 19:31:45 CET 2010

R. David Murray <rdmurray at bitdance.com> added the comment:

Committed in r87384.

Barry, I've added you as nosy in case you disagree with this fix.  The essential point is that before, parseaddr would turn 'merwok wok at example.com' into 'merwokwok at example.com', and now it preserves the whitespace.  My theory is that this loses data, that the obsolete syntax allows it, and that dropping the whitespace denies the application program the chance to apply its own heuristics.  However applications might currently be depending on the parsed local part being a single token, so I don't plan to backport this.

nosy: +barry
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list