This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Nikita Hoffmann
Recipients Nikita Hoffmann, barry, r.david.murray
Date 2019-11-05.13:03:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572959008.39.0.0407638047652.issue38698@roundup.psfhosted.org>
In-reply-to
Content
Parsing an invalid email message id can throw a header parser error. A bug in parse_message_ still tries to append the unset token to a variable.

File "/opt/python-3.8.0/lib/python3.8/email/_header_value_parser.py", line 2116, in parse_message_
id
    message_id.append(token)
UnboundLocalError: local variable 'token' referenced before assignment

Version 3.7 is not affected.
History
Date User Action Args
2019-11-05 13:03:28Nikita Hoffmannsetrecipients: + Nikita Hoffmann, barry, r.david.murray
2019-11-05 13:03:28Nikita Hoffmannsetmessageid: <1572959008.39.0.0407638047652.issue38698@roundup.psfhosted.org>
2019-11-05 13:03:28Nikita Hoffmannlinkissue38698 messages
2019-11-05 13:03:28Nikita Hoffmanncreate