New submission from tom de wulf <dewulfm...@gmail.com>: 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 ---------- components: email messages: 306431 nosy: barry, r.david.murray, tom de wulf priority: normal severity: normal status: open title: Faulty behaviour in email.utils.parseaddr if square brackets in subject type: behavior versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32058> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com