You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
406 B
11 lines
406 B
{
|
|
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
|
|
}
|
|
}
|
|
|