Hi, I've setup a new server, and made
# sudo -H -u vscan sa-learn --ham --progress --no-sync 
--mbox /tmp/ham.txt
3.59 msgs/sec 31m43s DONE
Learned tokens from 6842 message(s) (6842 message(s) examined)

And the same for SPAM, and then I have this:

# sudo -H -u vscan sa-learn --dump
0.000          0         0          0  non-token data: nspam
0.000          0         0           0  non-token data: nham

But when I do
# su -l vscan
[EMAIL PROTECTED]:~> sa-learn --ham --progress --no-sync 
--mbox /tmp/ham.txt
6.32 msgs/sec 18m03s DONE
Learned tokens from 6842 message(s) (6842 message(s) examined)

I have:
# sudo -H -u vscan sa-learn --dump
0.000          0       6726          0  non-token data: nspam
0.000          0       7023          0  non-token data: nham

Now why is there a diff between sudo as a user or directly logging in as 
the user? My local.cf has this entries:
loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
bayes_path                          ~/.spamassassin/bayes_db
bayes_expiry_max_db_size            20000000
bayes_file_mode                     0777
bayes_auto_expire                   0
bayes_auto_learn_threshold_spam     8.00
bayes_auto_learn_threshold_nonspam  0.1

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0660/4156531                          .network.your.ideas.
// PGP Key:   "lynx -source http://zmi.at/zmi3.asc | gpg --import"
// Fingerprint: 44A3 C1EC B71E C71A B4C2  9AA6 C818 847C 55CB A4EE
// Keyserver: www.keyserver.net                 Key-ID: 0x55CBA4EE

Attachment: pgp9SJpclWDC8.pgp
Description: PGP signature

Reply via email to