Package: procmail
Version: 3.22-16
Severity: normal

hi,

I was puzzled by some RE failure on a constant part of msgs sent by a script.
Eg. the recipe has the following RE

* ^Subject: .+ word1 word2

of course I'm sure sent msgs always have subject ending with 'word1 word2' -
that's wired into the script.

Turned out that RE fails whenever the '.+' part is long enough that mailer/
MTA folds the header, so msg is received like

!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,

"...  Unfolding  is  accomplished  by regarding   CRLF   immediately  
 followed  by  a  LWSP-char  as equivalent to the LWSP-char."

which of course makes sense, otherwise no RE with [ \t] would be reliable - 
ie 'word1 word2\tword3' should be written instead as
'word1[ \t]+word2[ \t]+word3'.


thanks
--
paolo


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to