smeserver-learn/root/etc/e-smith/events/actions/LearnSpam-init

21 lines
849 B
Bash

#!/bin/bash
# default is 0, if kept to 0 we can not play there
/sbin/e-smith/db configuration setprop spamassassin UseBayes 1
# default is empty, we shall set it if we want to have a run
/sbin/e-smith/config getprop spamassassin BayesAutoLearnThresholdSpam >/dev/null|| /sbin/e-smith/config setprop spamassassin BayesAutoLearnThresholdSpam 6.00
/sbin/e-smith/config getprop spamassassin BayesAutoLearnThresholdNonspam >/dev/null|| /sbin/e-smith/config setprop spamassassin BayesAutoLearnThresholdNonspam 0.10
# we really need spamassassin running
/sbin/e-smith/config setprop spamassassin status enabled
# default is 0 for no reject
#/sbin/e-smith/config setprop spamassassin RejectLevel 12
# default is 5
#/sbin/e-smith/config setprop spamassassin TagLevel 4
# default is medium
#/sbin/e-smith/config setprop spamassassin Sensitivity custom