That is the output of --dump magic? I haven't ever seen it formatted that
nicely. I assume you skipped the first line, but there's also missing the
expire atime delta. So, where do you got this from? Not directly from sa-learn
--dump magic I'd say. You are running SA thru some interface? You should have
said something about the whereabouts of your installation.

You are right, I am using MailWatch. I just posted this output to be easy for one to see the actual dates without having to convert. Here is the actual output:


# /usr/bin/sa-learn -p /opt/MailScanner/etc/spam.assassin.prefs.conf --dump magic
0.000 0 3 0 non-token data: bayes db version
0.000 0 49740 0 non-token data: nspam
0.000 0 47167 0 non-token data: nham
0.000 0 123325 0 non-token data: ntokens
0.000 0 1107319073 0 non-token data: oldest atime
0.000 0 1110636450 0 non-token data: newest atime
0.000 0 1108137790 0 non-token data: last journal sync atime
0.000 0 1108129534 0 non-token data: last expiry atime
0.000 0 804361 0 non-token data: last expire atime delta
0.000 0 3475 0 non-token data: last expire reduction count


Ok. Get the values. Then learn a message to it. Make sure it says that it
actually learned, then check the values again. Is either the spam or ham count
increased by one or not?

No it isn't. This is exactly the point I mentioned. But as I said earlier, sa-learn claims it has learned, even from the web interface:
SA Learn: Learned from 1 message(s) (1 message(s) examined).

Ok, this finally looks a bit suspicious. No sync and no expire for a month. If
it doesn't sync you don't get new tokens. Check in your bayes directory how big
your bayes_journal is. I'd think it's quite big. Do a sync now. (Please don't
do it via an interface, do it on the command line.) What's the output? Is the
journal gone and the number of tokens increased now? If so, you need to
investigate why it doesn't sync anymore. Also do an expire then.

This is getting more suspicious: there is no bayes_journal file!

# ll /var/spool/MailScanner/bayes/
total 11780
drwxrwxrwx  2 root nobody     4096 Mar 14 00:22 .
drwxr-xr-x  4 root nobody     4096 Mar 13 11:55 ..
-rw-rw-rw-  1 root nobody     1236 Mar 14 00:22 bayes.mutex
-rw-rw-rw-  1 root nobody 10452992 Mar 14 00:22 bayes_seen
-rw-rw-rw-  1 root nobody  5509120 Mar 14 00:02 bayes_toks

I can assure you noone has touched anything inside this directory. If this is the reason for the problems I've been facing, is there a way to recreate the file without having to lose my current data? (perhaps by copying the above files somewhere, execute sa-learn --clear and some time later restore the above files?)

Thanks for your help

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




Reply via email to