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 tom de wulf
Recipients barry, r.david.murray, tom de wulf
Date 2017-11-17.11:06:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510916803.84.0.213398074469.issue32058@psf.upfronthosting.co.za>
In-reply-to
Content
Probably a parsing bug in email.utils.parseaddr.

How to recreate:

>>> import email.utils
>>> test = 'Subject: I am a bug [Random]\r\nFrom: someone <some@email.address>\r\n\r\n'
>>> email.utils.parseaddr(test)
('', 'I')
>>> email.utils.parseaddr(test.replace('[', '').replace(']',''))
('someone', 'some@email.address')

Expected behaviour: no need to remove the []'s
History
Date User Action Args
2017-11-17 11:06:43tom de wulfsetrecipients: + tom de wulf, barry, r.david.murray
2017-11-17 11:06:43tom de wulfsetmessageid: <1510916803.84.0.213398074469.issue32058@psf.upfronthosting.co.za>
2017-11-17 11:06:43tom de wulflinkissue32058 messages
2017-11-17 11:06:43tom de wulfcreate