Mail::SpamAssassin::Plugin::Shortcircuit(3pm) | User Contributed Perl Documentation | Mail::SpamAssassin::Plugin::Shortcircuit(3pm) |
Mail::SpamAssassin::Plugin::Shortcircuit - short-circuit evaluation for certain rules
loadplugin Mail::SpamAssassin::Plugin::Shortcircuit report Content analysis details: (_SCORE_ points, _REQD_ required, s/c _SCTYPE_) add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ shortcircuit=_SCTYPE_ autolearn=_AUTOLEARN_ version=_VERSION_"
This plugin implements simple, test-based shortcircuiting. Shortcircuiting a test will force all other pending rules to be skipped, if that test is hit. In addition, a symbolic rule, "SHORTCIRCUIT", will fire.
Recomended usage is to use "priority" to set rules with strong S/O values (ie. 1.0) to be run first, and make instant spam or ham classification based on that.
The following configuration settings are used to control shortcircuiting:
Recomended usage is to use "priority" to set rules with strong S/O values (ie. 1.0) to be run first, and make instant spam or ham classification based on that.
To override a test that uses shortcircuiting, you can set the classification type to "off".
body TEST /test/ describe TEST test rule that scores barely over spam threshold score TEST 5.5 priority TEST -100 shortcircuit TEST on
The result of a message hitting the above rule would be a final score of 5.5, as opposed to 100 (default) if it were classified as spam.
shortcircuit TEST on priority TEST -100 score TEST 100 tflags TEST noautolearn
shortcircuit TEST on priority TEST -100 score TEST -100 tflags TEST noautolearn nice
The following tags are added to the set available for use in reports, headers etc.:
_SC_ shortcircuit status (classification and rule name) _SCRULE_ rulename that caused the shortcircuit _SCTYPE_ shortcircuit classification ("spam", "ham", "default", "none")
"http://issues.apache.org/SpamAssassin/show_bug.cgi?id=3109"
2021-03-26 | perl v5.28.1 |