On Fri, 2003-07-25 at 15:13, Daniel Carrera wrote:
> > > Like wise we can go on with more consonants:
> > >
> > > score     MY_CONSONANT_4  0.15
> > > score     MY_CONSONANT_5  0.30
> > > score     MY_CONSONANT_6  0.60
> > > score     MY_CONSONANT_7  1.20
> > > score     MY_CONSONANT_8  2.40
> >
> > Dumb question from a rules newb: does adding a _# at the end 
> > automagically make SA count occurences?

No. It's just a name.

> 
> What I was saying in my post was essentially that if you get (say) 7 
> consecutive consonants, then that email will test positive for rules 
> MY_CONSONANT_4 up to MY_CONSONANT_7 so they'll add up.

Probably more effective would be to write this as an eval: rule and write a function 
for it. (eval:consonant_count('0', '4'), eval:consonant_count('5', '6'), 
eval:consonant_count('6', '10'), ect..). That way you wouldn't add scores together 
when all you really want is one score for the number of consonants found.

Just my .02

Darryl Bleau




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to