[issue28262] Header folder folds incorrectly causing MissingHeaderBodySeparatorDefect

2016-09-23 Thread R. David Murray
R. David Murray added the comment: It seems to me this has been reported before, but I couldn't lay hands on the issue in a quick search. With this description of the problem and example, I think I see what is wrong. The folding algorithm is probably trying to handle the encoded words one by

[issue28262] Header folder folds incorrectly causing MissingHeaderBodySeparatorDefect

2016-09-23 Thread Vincent Vanlaer
New submission from Vincent Vanlaer: Example: X-Report-Abuse: =?us-ascii?q?=3Chttps=3A=2F=2Fwww=2Emailitapp=2Ecom=2Freport=5Fabuse=2Ephp=3Fmid=3Dxxx-xxx-?= =?us-ascii?q?=3D=3D-xxx-xx-xx=3E?= When this header is parsed and reencoded as bytes using policy.default, the