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 r.david.murray
Recipients Nikita Hoffmann, barry, maxking, r.david.murray, xtreak
Date 2019-11-24.18:00:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574618451.99.0.810208826886.issue38698@roundup.psfhosted.org>
In-reply-to
Content
More tests are always good :)

The "correct" solution here (as far as I remember, its has been a while since I've had time to even looked at the _header_value_parser code) would be to add a new 'invalid-msg-id' token, and do this:

    message_id = MessageID()
    try:
        token, value = get_msg_id(value)
        message_id.append(token)
    except HeaderParseError as ex:
        message_id = InvalidMessageID(value)
        message_id.defects.append(InvalidHeaderDefect(
            f"Invalid msg_id: {ex}"))
    return message_id
History
Date User Action Args
2019-11-24 18:00:52r.david.murraysetrecipients: + r.david.murray, barry, maxking, xtreak, Nikita Hoffmann
2019-11-24 18:00:51r.david.murraysetmessageid: <1574618451.99.0.810208826886.issue38698@roundup.psfhosted.org>
2019-11-24 18:00:51r.david.murraylinkissue38698 messages
2019-11-24 18:00:51r.david.murraycreate