Message180440
email.utils.getaddresses doesn't seem to work if the quoted part of address contains "\r" or "\n" characters. An example:
---
from email.utils import getaddresses
address = '"Data Mining, Statistics, Big Data, and Data Visualization Group\r\n Members" <group-digests@linkedin.com>'
getaddresses([address])
---
In Python 2.7.3, this returns:
[('', u'Data Mining, Statistics, Big Data, and Data Visualization Group')]
Not sure if this is a real bug or if the address is malformed, in any case I encountered this issue when parsing e-mails fetched from GMail. |
|
Date |
User |
Action |
Args |
2013-01-22 23:51:42 | japh44 | set | recipients:
+ japh44, barry, r.david.murray |
2013-01-22 23:51:42 | japh44 | set | messageid: <1358898702.5.0.0944995793434.issue17017@psf.upfronthosting.co.za> |
2013-01-22 23:51:42 | japh44 | link | issue17017 messages |
2013-01-22 23:51:42 | japh44 | create | |
|