Michael wrote: > I am working an a program that accepts spamassassin 'TELL' (learning) > reports > (see spamc/spamd, and new 'spamassassin coach' for outlook and > thunderbird)
> Sa coach sends stream to spamd with 'TELL' protocol. > It then calls the equivalent of 'spamassassin -r' (for spam) or '-z for > ham' or -f for forget. > Is this sufficient for amavisd-new installations? > Do I need to call sa-learn --ham and sa-learn --spam also? > If I call sa-learn --ham or --spam INSTEAD OF, I lose the ability to > report to DCC,razor,spamcop.,pyzor, etc. > I will be releasing sa-learnd for amavisd-new users as sa coach also > gets more stable (I can't get it to work with outlook, and even the > thunderbird version is missing a lot of error checking) > So, is spamassassin -r a superset of sa-learn --spam? Or do I need to > run them both to get the local Bayesian table updated? It would be best to ask on the SA users list. Just a test: sfa:~# ls -l /var/lib/amavis/.spamassassin/ total 40 -rwxr-x--- 1 amavis amavis 12288 2006-08-19 20:51 auto-whitelist -rw-rw-rw- 1 amavis amavis 12 2006-08-27 12:18 bayes.mutex -rw------- 1 amavis amavis 12288 2006-08-26 18:18 bayes_seen -rw------- 1 amavis amavis 12288 2006-08-27 12:18 bayes_toks -rwxr-x--- 1 amavis amavis 1487 2006-08-19 20:51 user_prefs sfa:~# su amavis -c 'spamassassin -r < email.txt' [2762] warn: reporter: SpamCop message older than 2 days, not reporting 1 message(s) examined. sfa:~# ls -l /var/lib/amavis/.spamassassin/ total 40 -rwxr-x--- 1 amavis amavis 12288 2006-08-19 20:51 auto-whitelist -rw-rw-rw- 1 amavis amavis 12 2006-09-03 10:52 bayes.mutex -rw------- 1 amavis amavis 12288 2006-09-03 10:51 bayes_seen -rw------- 1 amavis amavis 12288 2006-09-03 10:51 bayes_toks -rwxr-x--- 1 amavis amavis 1487 2006-08-19 20:51 user_prefs sfa:~# su amavis -c 'sa-learn --spam < email.txt' Learned tokens from 1 message(s) (1 message(s) examined) sfa:~# ls -l /var/lib/amavis/.spamassassin/ total 52 -rwxr-x--- 1 amavis amavis 12288 2006-08-19 20:51 auto-whitelist -rw-rw-rw- 1 amavis amavis 15 2006-09-03 10:53 bayes.mutex -rw------- 1 amavis amavis 12288 2006-09-03 10:53 bayes_seen -rw------- 1 amavis amavis 24576 2006-09-03 10:53 bayes_toks -rwxr-x--- 1 amavis amavis 1487 2006-08-19 20:51 user_prefs So, it appears to me no learning takes place when using spamassassin -r, but the bayes files are accessed. Gary V ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/