Also adjust default thresholds for autolearningtags/ipasserelle-base-0.2.65-1 0.2.59_el6
parent
6e9d745fc8
commit
8ca6849166
1 changed files with 7 additions and 2 deletions
@ -1,11 +1,16 @@ |
|||||||
{ |
{ |
||||||
if (($spamassassin{UseBayes} || '0') =~ m/^1|on|yes|enabled$/ && ($spamassassin{BayesAutoLearn} || 'no') =~ m/^1|on|yes|enabled$/){ |
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 $ham_thres = $spamassassin{BayesHamThreshold} || '-1.0'; |
||||||
my $spam_thres = $spamassassin{BayesSpamThreshold} || '8'; |
my $spam_thres = $spamassassin{BayesSpamThreshold} || '6'; |
||||||
$OUT .=<<"_EOF"; |
$OUT .=<<"_EOF"; |
||||||
bayes_auto_learn 1 |
bayes_auto_learn 1 |
||||||
bayes_auto_learn_threshold_nonspam $ham_thres |
bayes_auto_learn_threshold_nonspam $ham_thres |
||||||
bayes_auto_learn_threshold_spam $spam_thres |
bayes_auto_learn_threshold_spam $spam_thres |
||||||
_EOF |
_EOF |
||||||
} |
} |
||||||
|
else{ |
||||||
|
$OUT .=<<"_EOF"; |
||||||
|
bayes_auto_learn 0 |
||||||
|
_EOF |
||||||
|
} |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue