[New-bugs-announce] [issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

Massimiliano Torromeo report at bugs.python.org
Thu Nov 30 05:40:34 EST 2017


New submission from Massimiliano Torromeo <massimiliano.torromeo at 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 <foo at example.com> <bar at 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 <report at bugs.python.org>
<https://bugs.python.org/issue32178>
_______________________________________


More information about the New-bugs-announce mailing list