Handling of long headers inconsistent (Received and From)
|Reported by:||memoryhole||Owned by:|
When transferring headers from incoming emails, usually newlines are stripped from them. In the case of Received headers, for some reason, they are not. Thus, if the Received header is getting long, mails are fed to sendmail that have extra newlines in the Received header. This can break things.
The simple solution is to strip newlines from Received headers, just like all other headers.
However, handling of wrapped headers is pretty fragile in its current form. The attached patch, to unfold all headers before parsing them, should be a better solution.