Massimiliano Torromeo <massimiliano.torro...@gmail.com> 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. For example an email with this header will trigger the IndexError: ReplyTo: "" ---------- keywords: +patch pull_requests: +4558 stage: -> patch review _______________________________________ 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