procmail
[Top] [All Lists]

Re: Matching a header in .procmailrc

2002-06-25 09:39:34
On Mon, 24 Jun 2002, Chris Sechiatano wrote:

Hi,

Just for my own sanity, I want to know why this works or doesn't work.  I'm
using Spamassassin for my spam filtering and it inserts these neat headers
into each message like this:

X-Spam-Level: ********

The number of '*' changes based on how many 'hits' spamassassin catches.
In my .procmailrc file, I have a rule that catches this with more than 12
hits and sends it to /dev/null (its definitely spam with more than 12
hits).

:0
* ^X-Spam-Level: ............
/dev/null

This rule works, but why doesn't this one work?  It works when I egrep the
spamfile, just not in procmail.

:0
* ^X-Spam-Level:.\*{12,}
/dev/null


        Procmail is not full compatible to egrep(1).  To see the list
        of the compatible operators see in procmailrc's man - look for
        the header:  "Extended regular expressions"

Bye,
 Udi

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>