egrep matches, but procmail recipe not
Eric Smith <[email protected]> Sun, 16 Aug 2015 11:06:29 +0200
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
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-" However, when I test with egrep for a (positive) match with these patterns, then they do match. $ cat test_patterns ^(Subject|From):.*sunglas ^(Subject|From):.*Sunglasses ^(Subject|From):.*Oakley ^(Subject|From):.*Ray*Ban ^(Subject|From):.*?utf- $ egrep -i -f test_patterns rayban.mail From: "RayBan Sunglasses" <[email protected]> Subject: =?utf-8?B?UmF5QmFuIFN1bmdsYXNzZXMgIiA=?= From: "RayBan Sunglasses" <[email protected]> Subject: =?utf-8?B?UmF5QmFuIFN1bmdsYXNzZXMgIiA=?= What is wrong with my procmail recipes? Eric