[New-bugs-announce] [issue17017] email.utils.getaddresses fails for certain addresses
report at bugs.python.org
Wed Jan 23 00:51:42 CET 2013
New submission from Andreas Dewes:
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 at linkedin.com>'
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.
nosy: barry, japh44, r.david.murray
title: email.utils.getaddresses fails for certain addresses
versions: Python 2.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce