On Thu, Apr 19, 2007 at 04:50:35PM +0200, Santiago Vila wrote: > The submitter does not say it explicitly, but I guess it's about
hm, it looks explict to me: I'm talking of procmail. > behaviour of "formail -c". Manpage says: > > -c Concatenate continued fields in the header. [...] procmail is supposed to do like that as well. > > but it's not what it really does, nor it is what RFC 2822 calls > "unfolding". Quote: right, both procmail and formail do the wrong thing here - thanks for pointing it out, I had a note around for same bugrep for formail as well. > Unfolding is accomplished by simply removing any CRLF > that is immediately followed by WSP. yep, different wording, but same as rfc822 > however this is what formail -c seems to do, from src/fields.c in the ... > Converting a newline into a white space does not really concatenate > fields, as it adds an extra space. right - and breaks the RE in the recipe: > !Subject: blah blah blah word1 > ! word2 > > but procmail fails to properly unfold the header, the recipe's RE would see > > "Subject: blah blah blah word1 word2" > ^ > note the extra LWSP. According to rfc822, thanks -- paolo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]