Sorry to mess up the thread, I lost the original

> -----Original Message-----
> From: Dhawal Doshy [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 06, 2007 9:39 AM
> To: users@spamassassin.apache.org
> Subject: Re: Annoying stocks scams
> 
> [EMAIL PROTECTED] wrote:
> > Hi List!
> > 
[ ... ]
> > meta      HILO_STOCKS     ( __HILO_STOCKS1 && __HILO_STOCKS2 )
> > describe  HILO_STOCKS     Looks like stocks scam
> > score     HILO_STOCKS     3.5
> > 
> > It's my first meta rule, which only gives a score if both 
> conditions are 
> > true, and I was wondering if there's a possibility to make 
> the score 
> > more "intelligent" :
> > 
> > - if __HILO_STOCKS1 fires up, i would like to give the 
> score maybe 0.5
> > - if __HILO_STOCKS2 matches as well together with 
> __HILO_STOCKS2, make 
> > it 3.5
[ ... ]

Define two metas, the first one hits only when 1 is true and 2 is false
The second hits when both are true. You have to use the negation for 2
In meta one or you would double dip whenever both are true.

meta      HILO_STOCKS_1     ( __HILO_STOCKS1 && !__HILO_STOCKS2 )
meta      HILO_STOCKS_2     ( __HILO_STOCKS1 && __HILO_STOCKS2 )

describe  HILO_STOCKS_1     Looks like stocks scam First Hit Only
describe  HILO_STOCKS_2     Looks like stocks scam Both Hit

score     HILO_STOCKS_1     0.5
score     HILO_STOCKS_2     3.5

If you wanted to score the 0.5 whenever either 1 or 2 is true and the other
is false

meta      HILO_STOCKS_1     ( (__HILO_STOCKS1 && !__HILO_STOCKS2) ||
(!__HILO_STOCKS1 && __HILO_STOCKS2) )

Rick


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Reply via email to