[issue32179] Empty email address in headers triggers an IndexError

2019-07-09 Thread R. David Murray
R. David Murray added the comment: BareQuotedString implies the new API is being used, though that was not made clear in the report. However, unlike the other recently closed issue, this one was in fact fixed (and I have a vague memory of reviewing the PR): >>> m = message_from_string('Repl

[issue32179] Empty email address in headers triggers an IndexError

2019-07-03 Thread Cheryl Sabella
Cheryl Sabella added the comment: Closing this per @maxking's comment. If it can be recreated, please reopen. -- nosy: +cheryl.sabella resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue32179] Empty email address in headers triggers an IndexError

2019-06-14 Thread Abhilash Raj
Abhilash Raj added the comment: I wasn't able to reproduce this on the latest master. Probably fixed as a part of some other PR. >>> msg = email.message_from_string('ReplyTo: ""') >>> msg >>> msg['ReplyTo'] '""' I think this issue can be closed. -- nosy: +maxkin

[issue32179] Empty email address in headers triggers an IndexError

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