You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2006/10/13 18:08:37 UTC

[Spamassassin Wiki] Update of "WritingRules" by KevinMcGrail

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by KevinMcGrail:
http://wiki.apache.org/spamassassin/WritingRules

The comment on the change is:
Clarified the value of the sub rule in a meta test with example

------------------------------------------------------------------------------
  score LOCAL_MULTIPLE_TESTS 0.1
  }}}
  
+ The value of the sub rule in an arithmetic meta rule is the true/false (1/0) value for whether or not the rule hit.
+ 
+ If you want to weight your sub rules differently, you can apply weights to them like you would in any standard equation:
+ 
+ meta LOCAL_MULTIPLE_TESTS (((0.8 * __LOCAL_TEST1) + (0.5 * __LOCAL_TEST2)) > 1)
+ 
  == Finding more information and examples ==
  
  Perhaps the rule you want has already been written: check out the collection of custom rules at SpamAssassinRules.
@@ -334, +340 @@

  If you think your rules might need some tweaking for speed, you can measure their overhead by profiling them as described in ProfilingRulesWithDprof.
  
  Once you've written and tested a few rules, consider sharing them with us at SpamAssassinRules.
+ ----
+ CategoryRules