procmail
[Top] [All Lists]

Matching a header in .procmailrc

2002-06-24 11:19:15
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


Any help would greatly appreciated.

Thanks

-- 
Chris Sechiatano
chris(_at_)chris-s(_dot_)com
www.chris-s.com

PGP Key 0x0021EFA0

_______________________________________________
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>