Message357405
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 |
|
Date |
User |
Action |
Args |
2019-11-24 18:00:52 | r.david.murray | set | recipients:
+ r.david.murray, barry, maxking, xtreak, Nikita Hoffmann |
2019-11-24 18:00:51 | r.david.murray | set | messageid: <1574618451.99.0.810208826886.issue38698@roundup.psfhosted.org> |
2019-11-24 18:00:51 | r.david.murray | link | issue38698 messages |
2019-11-24 18:00:51 | r.david.murray | create | |
|