Re: egrep matches, but procmail recipe not
Eric Smith <[email protected]> Sun, 16 Aug 2015 16:44:34 +0200
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
Thanks Ian, Ian Zimmerman wrote on Sun-16-Aug 15 3:56PM > Is rayban.mail a valid email message, and do these lines occur in its > header? By default procmail recipe conditions only search the header, > the body is ignored. This can be changed with the B flag. Indeed, a valid and heavily contrived stealth email message. From [email protected] Mon Jul 20 13:18:02 2015 Return-Path: <[email protected]> X-Original-To: [email protected] Delivered-To: [email protected] Received: fro <snip> [email protected]>) Message-ID: <[email protected]> From: "RayBan Sunglasses" <[email protected]> To: <[email protected]> Subject: =?utf-8?B?UmF5QmFuIFN1bmdsYXNzZXMgIiA=?= =?utf-8?B?ODUlIE9GRiDigJMgSnVseSAyMDE1Og==?= =?utf-8?B?ICJGYWN0b3J5IERpcmVjdCBTaGk=?= =?utf-8?B?cHBpbmci?= Date: Mon, 20 Jul 2015 19:17:59 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_06AB_0119E2DE.1A38CF10" X-mailer: Ogdxaayx 9 This is a multi-part message in MIME format. <snip> ------=_NextPart_000_055B_015D890D.119C5DA0-- > Since grep -f searches for _any_ of the patterns in the file, it would > help running it with one pattern at a time, so you know which one > actually matched. As it is you don't know. They all matched as expected in egrep. I did prototype with them one at a time to check this. > Lastly, some of the patterns probably don't do quite what you want. ? > is an extended regexp metacharacter, and Ray*Ban matches RaBan but not > RayxxxBan. Of course, my carelessness. I am still clueless as to why the procmail recipe is not filtering :( Eric