antispam:plugin:shortcircuit

Stop evaluation early if high-accuracy rules fire in order to reduce CPU load.

warden --task=antispam:plugin:shortcircuit
Option
Value Default Description
--shortcircuit <string1,string2> Shortcircuiting a test will force all other pending rules to be skipped, if that test is hit. The syntax is SYMBOLIC_TEST_NAME (ham|spam|on|off).
--shortcircuit_add <string> Add a single entry to shortcircuit.
--shortcircuit_del <string> Remove a single entry from shortcircuit.
--shortcircuit_spam_score <string> 100 When shortcircuit is used on a rule, and the shortcircuit classification type is set to spam, this value should be applied in place of the default score for that rule.
--shortcircuit_ham_score <string> -100 When shortcircuit is used on a rule, and the shortcircuit classification type is set to ham, this value should be applied in place of the default score for that rule.
--default <yes> Reset all settings to their default values.
--default_option <option> Reset a specific setting to its default value.
--reload <yes> Reload the service after saving settings.

Examples

// set the shortcircuit
warden --task=antispam:plugin:shortcircuit --shortcircuit='ALL_TRUSTED on,BAYES_99 spam' --reload=yes

// add an entry to shortcircuit
warden --task=antispam:plugin:shortcircuit --shortcircuit_add='BAYES_00 ham' --reload=yes

// delete an entry from shortcircuit
warden --task=antispam:plugin:shortcircuit --shortcircuit_del='BAYES_00 ham' --reload=yes

// reset shortcircuit_spam_score to its default value
warden --task=antispam:plugin:shortcircuit --default_option=shortcircuit_spam_score --reload=yes

// reset all settings to their default values
warden --task=antispam:plugin:shortcircuit --default=yes --reload=yes