[issue39040] Wrong attachement filename when mail mime header was too long

R. David Murray report at bugs.python.org
Fri Dec 13 12:38:36 EST 2019


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

Thanks for the report.  Can you provide an example that reproduces the problem?  

Per the RFC, lines may be broken before whitespace in certain places in certain headers, but that does not make the whitespace go away.  Only the crlf sequence is removed when unfolding the header, per the RFC, so your proposed fix is incorrect. I suspect your example header is invalid, and the question will then become is there some sort of Postel-style error recovery we can and want to do in the function that parses the content-disposition header.

----------

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


More information about the Python-bugs-list mailing list