brilliant!
I wasn't sure if you could even do greater than/less than evals with SA, and
the concept in your suggestion didn't even cross my mind (duh!).  It's is
actually more flexible your way.

Thanks!

-----Original Message-----
From: Tim B [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 4:38 PM
To: [EMAIL PROTECTED]
Subject: Re: I need to write a rule with a 'greater than or equal to'
evaluati on.


[EMAIL PROTECTED] wrote:
> I've been using Messagewall for a while now, and I decided to throw
> SpamAssassin into the mix.  Messagewall is great, but it's not dynamic
> enough.
> 
> Problem is that I eventually want messagewall to tag messages only, then
> pass them on to SA.
> Messagewall always adds the header "X-MessageWall-Score: <score>
> (<host.domain.tld>)".  I want to write a rule for SpamAssassin that
> basically says, "if <score> is greater than or equal to 15, then it's a
> match."  Note that <score> can be more than two digits.
> 
> This is how far I've gotten in local.cf:
> 
> header MW_SPAM X-MessageWall-Score: =~ /^[>=15].*/
> score MW_SPAM 1.00
> 

You may have to break this up into two rules like this:

header MY_SPAM_1  X-MessageWall-Score: =~ /1[5-9].*/
describe MY_SPAM_1 message wall scored between 15 and 19
score MY_SPAM_1 1.00

header MY_SPAM_2 X-MessageWall-Score: =~ /[2-9][0-9].*/
describe MY_SPAM_2 Message Wall scored between 20 and 99
score MY_SPAM_2 1.00

Reply via email to