[issue1025395] email.Utils.parseaddr fails to parse valid addresses

Stuart D Gathman report at bugs.python.org
Fri Jan 11 20:14:27 CET 2008


Stuart D Gathman added the comment:

Test cases so far:
  >>> parseaddr('user at example.com')
  ('', 'user at example.com')
  >>> parseaddr('"Full Name" <foo at example.com>')
  ('Full Name', 'foo at example.com')
  >>> parseaddr('spam at spammer.com <foo at example.com>')
  ('spam at spammer.com', 'foo at example.com')
  >>> parseaddr('God at heaven <@hop1.org, at hop2.net:jeff at spec.org>')
  ('God at heaven', 'jeff at spec.org')
  >>> parseaddr('Real Name ((comment)) <addr... at example.com>')
  ('Real Name', 'addr... at example.com')
  >>> parseaddr('a(WRONG)@b')
  ('', 'a at b')

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1025395>
_____________________________________


More information about the Python-bugs-list mailing list