Re: egrep matches, but procmail recipe not

Erik Christiansen <[email protected]> Mon, 17 Aug 2015 19:40:11 +1000
Newsgroups gmane.mail.procmail
Message-ID <20150817094011.GB3638@ratatosk>
On 16.08.15 11:06, Eric Smith wrote:
> The following (negative) procmail patterns do not match:
> 
> :0:
> * ! ^(Subject|From):.*sunglas
> * ! ^(Subject|From):.*Sunglasses
> * ! ^(Subject|From):.*Oakley
> * ! ^(Subject|From):.*Ray*Ban
> * ! ^(Subject|From):.*?utf-
> 
> procmail logs:
> procmail: Match on ! "^(Subject|From):.*sunglas"
> procmail: Match on ! "^(Subject|From):.*Sunglasses"
> procmail: Match on ! "^(Subject|From):.*Oakley"
> procmail: Match on ! "^(Subject|From):.*Ray*Ban"
> procmail: Match on ! "^(Subject|From):.*?utf-"

Do not match precisely what, pray tell?
That is correct response for "Subject: Ooh de Elephants!", giving
delivery. And for any of the given patterns, one less match, giving
nondelivery. What do you see in these two cases?

> However, when I test with egrep for a (positive) match with these
> patterns, then they do match.

If mutt's match count decreases by one in each case, then they're
matching there too.

...
> What is wrong with my procmail recipes?

It's kinda hard to tell, given the information gaps.
Does mutt not show one less match when each given pattern is presented?

Erik