Hello,
how do I get the the spam score as a float in __SPAM_INFO__?
It would be sufficient to write the float value in the mail header. How to do that?
To achieve the same thing for the syslog, I slightly modified /usr/share/perl5/PMG/RuleDB/Spam.pm:
Cedric
how do I get the the spam score as a float in __SPAM_INFO__?
It would be sufficient to write the float value in the mail header. How to do that?
To achieve the same thing for the syslog, I slightly modified /usr/share/perl5/PMG/RuleDB/Spam.pm:
Code:
sub analyze_spam {
[...]
my ($sa_score, $sa_max, $sa_scores, $sa_sumary, $list, $autolearn, $bayes, $loglist, $sa_score_float);
[...]
$sa_score_float = $sa_score;
[...]
syslog ('info', "%s: SA score=%s/%s time=%0.3f bayes=%s autolearn=%s hits=%s", $queue->{logid}, $sa_score_float, $sa_max, $queue->{ptime_spam}/1000.0, $bayes, $autolearn, $loglist);
Last edited: