Add BayesAutoLearn param

This commit is contained in:
Daniel Berteaud 2016-04-14 18:38:59 +02:00
parent ae3c93945d
commit 6018870209
1 changed files with 11 additions and 0 deletions

View File

@ -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
}
}