From 601887020990956c4526d2429adb2abbb3bf2877 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 14 Apr 2016 18:38:59 +0200 Subject: [PATCH] Add BayesAutoLearn param --- .../templates/etc/mail/spamassassin/local.cf/10BayesAutoLearn | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 root/etc/e-smith/templates/etc/mail/spamassassin/local.cf/10BayesAutoLearn diff --git a/root/etc/e-smith/templates/etc/mail/spamassassin/local.cf/10BayesAutoLearn b/root/etc/e-smith/templates/etc/mail/spamassassin/local.cf/10BayesAutoLearn new file mode 100644 index 0000000..9c86f1d --- /dev/null +++ b/root/etc/e-smith/templates/etc/mail/spamassassin/local.cf/10BayesAutoLearn @@ -0,0 +1,11 @@ +{ + if (($spamassassin{UseBayes} || '0') m/^1|on|yes|enabled$/ && ($spamassassin{BayesAutoLearn} || 'no') =~ m/^1|on|yes|enabled$/){ + my $ham_thres = $spamassassin{BayesHamThreshold} || '-0.1'; + my $spam_thres = $spamassassin{BayesSpamThreshold} || '8'; + $OUT .=<<"_EOF"; +bayes_auto_learn 1 +bayes_auto_learn_threshold_nonspam $ham_thres +bayes_auto_learn_threshold_spam $spam_thres +_EOF + } +}