Yeah, there's probably be an easier way to write this, but in the interest
of time here's what I ended up with (and it works):


bayes_ignore_header X-MessageWall-Score

header MW_SPAM_15_AND_19  X-MessageWall-Score =~ /1[5-9].*/
describe MW_SPAM_15_AND_19 Messagewall scored between 15 and 19
score MW_SPAM_15_AND_19 1.00

header MW_SPAM_20_AND_99 X-MessageWall-Score =~ /[2-9][0-9].*/
describe MW_SPAM_20_AND_99 Messagewall scored between 20 and 99
score MW_SPAM_20_AND_99 1.50

header MW_SPAM_100_AND_999  X-MessageWall-Score =~ /[1-9][0-9][0-9].*/
describe MW_SPAM_100_AND_999 Messagewall scored between 100 and 999
score MW_SPAM_100_AND_999 2.00

I hadn't thought of the bayes_ignore_header line until you mentioned it,
too.  Good idea. ;)

Thanks,

Nate

-----Original Message-----
From: Bob George [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 6:53 PM
To: [EMAIL PROTECTED]
Subject: Re: I need to write a rule with a 'greater than or equal to'
eval uati on.


[EMAIL PROTECTED] wrote:

>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
>  
>
Would:

header MY_SPAM_1 X-MessageWall-Score: =~/(1[5-9]|[2-9][0-9]).*/
describe MY_SPAM message wall scored between 15 and 99
score MY_SPAM 1.00

work?

- Bob

Reply via email to