
Oct. 6, 2002
8 p.m.
Dale Newfield <Dale@Newfield.org> writes:
Just stumbled across this in Utils.py:
# TBD: what other characters should be disallowed? _badchars = re.compile('[][()<>|;^,/]')
and thought I'd suggest that " and ' get added to that list...
Nope, because both of those characters are valid e-mail address components. Not in the form you mention (i.e. the double quote is not allowed in the domain part), but certainly in the local part.
In fact this is a perfectly valid e-mail address:
"f@,'[& "@example.com
And the parser should be able to cope with them, or any other RFC 2822 compliant address.
Darrell