This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author msapiro
Recipients
Date 2006-01-18.22:19:07
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
email.Utils.parseaddr('Real Name ((comment))
<addr...@example.com>')

returns

('comment <addr...@example.com>', 'Real')

Granted the string above is invalid as RFC 2822 does
not allow parentheses within comments, but most mail
agents seem to at least take the contents of the angle
brackets as the address in this case.

rfc822.parseaddr() returns the same result in this case.

If these functions aren't going to return their
respective failure indication in this case, I think
they should at least return 'addr...@example.com' as
the second item of the returned tuple.

Note that

parseaddr('Real Name <addr...@example.com> ((comment))')

does return

('Real Name', 'addr...@example.com')

as 'expected'.
History
Date User Action Args
2007-08-23 14:37:22adminlinkissue1409460 messages
2007-08-23 14:37:22admincreate