procmail
[Top] [All Lists]

Re: egrep matches, but procmail recipe not

2015-08-17 08:50:36
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
____________________________________________________________
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