procmail
[Top] [All Lists]

Re: formail header concatenation

2009-01-21 11:10:49
* 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.

/HW
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail