formail header concatenation

Holger Wahlen H.Wahlen at
Wed Jan 21 17:09:11 CET 2009

* LuKreme wrote:
>> Okay.  It seems a little odd that words that were previously separated
>> by the newline are no longer separated once the lines have been
>> concatenated, but that's just my opinion.
> That's not how it works.
> The newlines are replaced with spaces.

No, the newlines are *removed*. Section 2.2.3 of RFC 2822 says:

| The general rule is that wherever this standard allows for folding
| white space (not simply WSP characters), a CRLF may be inserted before
| any WSP. For example, the header field:
|         Subject: This is a test
| can be represented as:
|         Subject: This
|          is a test
| The process of moving from this folded multiple-line representation of
| a header field to its single line representation is called
| "unfolding". Unfolding is accomplished by simply removing any CRLF
| that is immediately followed by WSP.

But the following WSP itself remains.


More information about the procmail mailing list