New submission from Massimiliano Torromeo <massimiliano.torro...@gmail.com>:
With some malformed email address list, the parser for email groups raises an `IndexError` instead of the correct `HeaderParseError`. This results in a complete failure to parse the email while it is still preferable to just ignore the malformed header. An example of such a malformed list is this: `To: :Foo <f...@example.com> <b...@example.com>` ---------- components: email messages: 307285 nosy: Massimiliano Torromeo, barry, r.david.murray priority: normal pull_requests: 4556 severity: normal status: open title: Some invalid email address groups cause an IndexError instead of a HeaderParseError type: behavior versions: Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32178> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com