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 japh44
Recipients barry, japh44, r.david.murray
Date 2013-01-22.23:51:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358898702.5.0.0944995793434.issue17017@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-01-22 23:51:42japh44setrecipients: + japh44, barry, r.david.murray
2013-01-22 23:51:42japh44setmessageid: <1358898702.5.0.0944995793434.issue17017@psf.upfronthosting.co.za>
2013-01-22 23:51:42japh44linkissue17017 messages
2013-01-22 23:51:42japh44create