At 05:37 PM 12/3/2005, David Buttrick wrote:
But the spam score AFTER sa-learn is LESS than before.
Isn't sa-learn --spam supposed to weight that message higher?
NO. sa-learn --spam is supposed to weight the BAYES score higher.
Now, if you test the message, then feed it to sa-learn --spam, then test it
again, the score should be higher.
However, if any significant time has passed between the two tests, on the
order of an hour, then comparing the final scores, or even the bayes
scores, is pointless. During that hour or more of time dozens of messages
could have been learned, RBL listings changed, etc.
Also, another thing to check for is if you're comparing against
delivery-time scanning scores, make sure you're doing all this as the same
user your mail gets scanned as. This is not neccesarily the same user who
mail is addressed to. If you use spamc/spamd it is definitely NOT root
(spamd will setuid itself to nobody if invoked to scan mail for root's userID)
Does sa-learn like to pipe to spamc?
No.
Or does sa-learn take some time to commit its work to the database?
If you're using the learn to journal option, yes. It will be delayed until
the next journal sync. Otherwise, no.