[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2019-08-11 Thread Abhilash Raj
Change by Abhilash Raj : -- stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2019-08-11 Thread miss-islington
miss-islington added the comment: New changeset dec231a73c2a463b29f19c4e8357602c10a68856 by Miss Islington (bot) in branch '3.7': bpo-32178: Fix IndexError trying to parse 'To' header starting with ':'. (GH-15044)

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2019-08-11 Thread miss-islington
miss-islington added the comment: New changeset 9500bbe9372f6080decc49d2fd9365f0b927a0e2 by Miss Islington (bot) in branch '3.8': bpo-32178: Fix IndexError trying to parse 'To' header starting with ':'. (GH-15044)

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2019-08-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +14941 pull_request: https://github.com/python/cpython/pull/15213 ___ Python tracker ___

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2019-08-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +14942 pull_request: https://github.com/python/cpython/pull/15214 ___ Python tracker ___

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2019-08-11 Thread miss-islington
miss-islington added the comment: New changeset 09a1872a8007048dcdf825a476816c5e3498b8f8 by Miss Islington (bot) (Abhilash Raj) in branch 'master': bpo-32178: Fix IndexError trying to parse 'To' header starting with ':'. (GH-15044)

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2019-07-30 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +14799 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/15044 ___ Python tracker ___

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2019-07-09 Thread R. David Murray
R. David Murray added the comment: The fact that the original report mentions HeaderParserError implies that the new API is being used, though the report didn't make that clear. The problem still exists: >>> m = message_from_string("To: :Foo >>> \n\n", policy=default) >>> m['To']

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2019-07-03 Thread Cheryl Sabella
Cheryl Sabella added the comment: Based on @maxking's comment, I'm going to close this issue. Thank you! -- nosy: +cheryl.sabella resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2019-06-14 Thread Abhilash Raj
Abhilash Raj added the comment: I don't think this is an issue anymore, I guess this was fixed as a part of some other PR. I tested this out on a recent branch: >>> import email >>> msg = email.message_from_string('From: Abhilash ') >>> msg['From'] 'Abhilash ' @david,

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2017-11-30 Thread Massimiliano Torromeo
Massimiliano Torromeo added the comment: Disregard my last message, I posted it in the wrong bug report by mistake. Sorry about the noise -- ___ Python tracker

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2017-11-30 Thread Massimiliano Torromeo
Change by Massimiliano Torromeo : -- pull_requests: -4558 ___ Python tracker ___

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2017-11-30 Thread Massimiliano Torromeo
Massimiliano Torromeo added the comment: 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.

[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2017-11-30 Thread Massimiliano Torromeo
New submission from Massimiliano Torromeo : 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