Wednesday, October 29, 2003, 9:28:22 AM, Chris Santerre wrote: >> On Wed, 29 Oct 2003, Mark Ritchie wrote: >>> ... Would it be possible to make a rule or adjust the rules so the >>> <i></i> scores high? ...
>>> Which brings to mind: Is there a mechanism in spamassassin to check >>> for a string and accumulate a score for *each* occurence of it? ... CS> We have been wanting an accumulating eval rule for a loooong time :-) Jason, Daniel, given there's a large number of applications for an "accumulating" or "counting" or "multiplying" rule method, should this be added as a bugzilla entry for a future release of SA? CS> Could be a new type, but based on which current type? I think we would need CS> 2, accubody and accurawbody. Then you would just right a rule: CS> accubody ACCU_mortgage /mortgage/i CS> decribe ACCU_mortgage number of times mortgage found in spam CS> score .03 #for each instance. CS> Wouldn't that be nice!? Alternately, a count rule type: > body B_MORTGAGE /mortgage/i > describe B_MORTGAGE mortgage mentioned > score B_MORTGAGE 0.03 > count CNT_MORTGAGE B_MORTGAGE # Generates score.B_MORTGAGE * count > of hits or a mult rule type > mult MULT_MORTGAGE __B_MORTGAGE # note orig rule now scoreless > score MULT_MORTGAGE 0.02 # Generates score.MULT_MORTGAGE * > count.__B_MORTGAGE CS> But I refuse to ask the devs for anything that I'm not willing to try to do CS> myself. They are busy enough. So this kind of stuff is on my looong wish CS> list of things I want to try. Anyone else is free to offer some CS> help/insight/coffee/Bruins tickets . Glad to contribute ideas, but I'm not able to help with the code here. Bob ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk