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.
Created on 2013年01月22日 23:51 by japh44, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg180440 - (view) | Author: Andreas Dewes (japh44) | Date: 2013年01月22日 23:51 | |
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. |
|||
| msg180458 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2013年01月23日 13:24 | |
It's sort-of a bug, and sort-of not. getaddresses is expecting to parse an already unfolded header, but the pre-3.3 email package does not unfold headers automatically. See issue 11050 for more information. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:40 | admin | set | github: 61219 |
| 2013年01月23日 13:24:49 | r.david.murray | set | status: open -> closed superseder: email.utils.getaddresses behavior contradicts RFC2822 messages: + msg180458 resolution: duplicate stage: resolved |
| 2013年01月22日 23:51:42 | japh44 | create | |