Message27314
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'. |
|
Date |
User |
Action |
Args |
2007-08-23 14:37:22 | admin | link | issue1409460 messages |
2007-08-23 14:37:22 | admin | create | |
|