[issue46392] MessageIDHeader is too strict for message-id

R. David Murray report at bugs.python.org
Tue Jan 18 16:03:11 EST 2022


R. David Murray <rdmurray at bitdance.com> added the comment:

The general idea is that the string version of the header should contain all of the original information, but the parsed elements (the things returned by special header attributes) will contain the valid data, if any.  So if the string version of the header is being truncated or transformed (other than whitespace changes during re-folding), that is a bug.

Your examples involve comment fields, and I'm afraid that my development of the parser stopped before I did very much with comments.  Therefore I am not surprised that comments are handled incorrectly :( :(  They aren't very common in the wild, as far as I was able to tell. which is why they were my last priority.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46392>
_______________________________________


More information about the Python-bugs-list mailing list