New submission from Massimiliano Torromeo <massimiliano.torro...@gmail.com>:
In case an address email header contains and empty string, the tokenizer return a BareQuotedString which is also a TokenList, but this list is empty and the parser fails to check this and insteads raises an IndexError. For example an email with this header will trigger the IndexError: ReplyTo: "" ---------- components: email messages: 307292 nosy: barry, mtorromeo, r.david.murray priority: normal pull_requests: 4559 severity: normal status: open title: Empty email address in headers triggers an IndexError type: behavior versions: Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32179> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com