• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Spamassassin bayes count?

Red Squirrel

No Lifer
In linux what is the command to get the bayes count on spam/non spam? I want to get an idea of how many emails it has learned from but can't seem to find a way to get those values.
 
I want an overall value thouh, sa learn is only how many it learned for that pass. I could take all my cron logs and calculate manually but that would be a real pain.
 
It depends on what backend you're using, but I'm not sure that's possible. When an email is learned the tokens are taken from it and stored in the database and a single email could contain multiple tokens. I don't think it ever records how many emails it's learned from because that's a rather useless statistic.

If I look at my database I get 2755 and I don't think I've fed sa-learn 2755 messages yet.

mysql> select count(id) from bayes_token;
+-----------+
| count(id) |
+-----------+
| 2755 |
+-----------+
1 row in set (0.00 sec)
 
Hmm odd, was sure there was a much easier way to get this stat. I know on a barracuda (spamassassin powered) there is a stat that shows how many emails have been fed.
 
Hmm odd, was sure there was a much easier way to get this stat. I know on a barracuda (spamassassin powered) there is a stat that shows how many emails have been fed.

It probably keeps track of them seperately then because SA itself doesn't AFAICT.
 
hmm could be. I could make my bayes-learn script pass it through the php interpreter to parse it (much easier to do with php then bash) then add to a file... but like you said the stat is not important so I wont go to that extent. It would just be nice to see that stat for fun.
 
Back
Top