In my logs I just stumbled upon entries like these:
| spamd[8490]: [info] setuid to mss succeeded_
| spamd[8490]: [processing message
| <[EMAIL PROTECTED]> for mss] 1000._
| spamd[8490]: [clean message (-2.6/5.0) for mss] 1000 in 2.8 seconds, 2520
| bytes._
| spamd[8490]: [result] . -2 - AWL,BAYES_00,NO_REAL_NAME
| scantime=2.8,size=2520,mid=<[EMAIL PROTECTED]>,
| bayes=5.55111512312578e-17,autolearn=no_
| spamd[8491]: [info] setuid to mss succeeded_
| spamd[8491]: [processing message <[EMAIL PROTECTED]>
| for mss] 1000._
| spamd[8491]: [clean message (-2.6/5.0) for mss] 1000 in 3.7 seconds, 2984
| bytes._
| spamd[8491]: [result] . -2 - BAYES_00
| scantime=3.7,size=2984,mid=<[EMAIL PROTECTED]>,
| bayes=1.11022302462516e-16,autolearn=ham_
Ignore the broken log format (metalog, yay), but have a look at the bayes=
entries. Don't you think that's a bit *too* exact? :) Would anybody
object to the attached patch?
Cheers,
Malte
--
[SGT] Simon G. Tatham: "How to Report Bugs Effectively"
<http://www.chiark.greenend.org.uk/~sgtatham/bugs.html>
[ESR] Eric S. Raymond: "How To Ask Questions The Smart Way"
<http://www.catb.org/~esr/faqs/smart-questions.html>
Index: spamd.raw
===================================================================
--- spamd.raw (revision 123811)
+++ spamd.raw (working copy)
@@ -1365,9 +1365,9 @@
my $safe = $rmsgid; $safe =~ s/[\x00-\x20\s,]/_/gs; push(@extra, "rmid=$safe");
}
if (defined $status->{bayes_score}) {
- push(@extra, "bayes=".$status->{bayes_score});
+ push(@extra, sprintf("bayes=%3.4f", $status->{bayes_score}));
}
- push(@extra, "autolearn=".$status->get_autolearn_status());
+ push(@extra, "autolearn=" . $status->get_autolearn_status());
my $yorn = $status->is_spam() ? 'Y' : '.';
my $score = $status->get_score();