On 08-26-2022 1:03 pm, Viktor Dukhovni wrote:
On Fri, Aug 26, 2022 at 12:48:40PM -0400, post...@ptld.com wrote:

Now that I understand what is happening with postfix logging as
explained to me in the previous reply, the issue is that postfix
logging is unfolding the subject without removing the CRLF as per
RFC5322 2.2.3 where it says "Unfolding is accomplished by simply
removing any CRLF that is immediately followed by WSP".

Postfix is NOT unfolding the subject, and so not surprisingly not
removing the CRLF (really just LF when presented to header_checks,
logs, delivered to unix files, ...).


See now that confuses me again.

I thought the process of folding and unfolding was the act of breaking long lines into 
multiple lines and then restoring them. But now I'm being told that when postfix combines 
multiple lines into one line for the subject header that is not unfolding? Or do you mean 
because a CRLF wasn't removed in the process of combining multiple lines, that alone 
means it isn't "unfolding"?

And regardless of all of these semantic technicalities, why wouldn't you want 
to remove CR or LF or CRLF from the end of a line being appended to when you 
are combining multiple lines regardless if you want to call it unfolding or 
not-unfolding? Clearly the intent is for those multiple lines to be one line, 
as evident of them staring with a WSP, and any CR or LF or CRLF only exist due 
to folding (or not-folding).

Reply via email to