>>> On 10/21/2012 at 6:39 PM, John Hardin <jhar...@impsec.org> wrote: > On Sun, 21 Oct 2012, Joseph Acquisto wrote: > >> I cleared the sa database by saying: sa-learn --clear >> >> Since then, I have been see this: >> >> my_host:~ # sa-learn --dump magic >> 0.000 0 3 0 non-token data: bayes db version >> 0.000 0 0 0 non-token data: nspam >> 0.000 0 0 0 non-token data: nham >> 0.000 0 0 0 non-token data: ntokens >> 0.000 0 0 0 non-token data: oldest atime >> 0.000 0 0 0 non-token data: newest atime >> 0.000 0 0 0 non-token data: last journal sync > atime >> 0.000 0 0 0 non-token data: last expiry atime >> 0.000 0 0 0 non-token data: last expire atime > delta >> 0.000 0 0 0 non-token data: last expire >> reduction > count >> >> Has not changed despite attempting to learn spam and ham. > > This typically indicates that you aren't running sa-learn while logged in > as the user that SA is running as. > > Does sa-learn actually say it is learning tokens from the messages? >
Hmm. If I su to spamfilter and run sa-learn --dump magic, I do see reasonable results. If I then try to learn ham or spam, it tells me permission denied trying to access the mail directory. Trying to learn spam or ham as root runs without complaint, but appears to be saying 0 learned. joe a.