b-sub-...@rope.net wrote: > I am implementing a new SA installation. It looks like the shortcircuit > feature would be very useful, in my case. However, in searching the wiki, > google, etc., etc., I have not been able to find a *simple* explicit > example for my use. > > As I understand it, I should be able to define a rule, and if it is a hit, > SA should then skip all further tests. I use a small set of custom rules > (filter definitions matching URI, BODY, HEADER, etc.), any of which, by > themselves, would be enough to classify a message as spam. So, what I'd > like to do is to rewrite these rules with shortcircuit so that as soon as > one is hit, that's it... > > Could someone please show me how I could alter this frivilous rule to use > shortcircuit: > > body SA1 /dear friend/i > describe SA1 SA - dear friend > score SA1 13 > # Score of 12 is enough to classify as spam > You need to do two things.
First, you probably want to set the priority of the rule so it runs before others, to get maximum benefit out of shortcircuiting. Second, you turn on Shortcirucuit for the rule. Which would be these two lines: priority SA1 -100 shortcircuit SA1 on. Which is exactly what docs for the ShortCircuit plugin suggest: http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Plugin_Shortcircuit.html