You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the remove-headers function leaves all multi line headers unwrapped. This affects the received lines and some other headers, which now are all written in a single line.
I'm trying to strip some X-MS-* headers (partly multi line also) before writing mails in mbox format. It seems that deliver-remove-header fails to restore the wrapping, possibly as a result of wrong offset calculation.
The text was updated successfully, but these errors were encountered:
It's the latest released version 2.0 (from VOID linux), see attached files. I also tested with sources compiled from git-master: same issue. header-removal-test.zip
After some more tests and reading the code I'm sure that the issue is caused by calling set_wrapped inside the loop of headers to remove. The first call of set_wrapped works as expected, while the 2nd fails to find any multi-line headers (as they are already wrapped) - the wrap position array is empty now, which suppresses the final unwrap step.
Using the remove-headers function leaves all multi line headers unwrapped. This affects the received lines and some other headers, which now are all written in a single line.
I'm trying to strip some X-MS-* headers (partly multi line also) before writing mails in mbox format. It seems that deliver-remove-header fails to restore the wrapping, possibly as a result of wrong offset calculation.
The text was updated successfully, but these errors were encountered: