I've just recently set up spam assassin and I've noticed a problem.

I set an macro in mutt so when i see a spam it runs it pipes it though
spamassassin -r, spamassassin --add-to-blacklist, and sa-learn-spam -s.

I also have a macro in mutt so when i see mis-labeled spam i run it though
spamassassin -W and sa-learn-nonspam -s.

The problem is when i do this it doesn't seem to update anything, the files
on the ~/.spamassassin/auto-whitelist and ~/.spamassassin/bayes* have an
old date and time on them and a quick `strings file |grep`  shows that the
entries are not in them.

So whats going on? Am i doing something wrong? It has the same problem when
i run it manually and I've tested my macro to make sure its not the problem.

I'll include the debug output from a spamassassin --add-to-blacklist, it
looks like its complaining about some lock file, but then fixes it. But no
files seem to be updated.

thanks

eli

--- debug info ---
$ spamassassin -V
SpamAssassin version 2.50-cvs

$ cat /dev/shm/badmail.7200 | spamassassin -D --add-to-blacklist   
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: using "/home/eli/.spamassassin" for user state dir
debug: using "/home/eli/.spamassassin/user_prefs" for user prefs file
debug: using "/home/eli/.spamassassin" for user state dir
debug: 7406 Trying to get lock on /home/eli/.spamassassin/auto-whitelist
pass 0
debug: Tie-ing to DB file R/W in /home/eli/.spamassassin/auto-whitelist
debug: DB addr list: untie-ing and destroying lockfile.
debug: DB addr list: file locked, breaking lock.

--more debug info --
$ cat /dev/shm/badmail.7200 | sa-learn-spam -s -D          
debug: Initialising learner
debug: ignore: test message to precompile patterns and load modules
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: using "/home/eli/.spamassassin/user_prefs" for user prefs file
debug: running header regexp tests; score so far=0
debug: uri tests: Done uriRE
debug: running body-text per-line regexp tests; score so far=2.2
debug: bayes: tie-ing to DB file R/O /home/eli/.spamassassin/bayes_toks
debug: bayes: tie-ing to DB file R/O /home/eli/.spamassassin/bayes_seen
debug: corpus too small (21 < 200), skipping
debug: bayes: not scoring message, returning 0.5
debug: running raw-body-text per-line regexp tests; score so far=2.2
debug: running uri tests; score so far=2.2
debug: uri tests: Done uriRE
debug: running full-text regexp tests; score so far=2.2
debug: local tests only, ignoring Razor2
debug: local tests only, ignoring DCC
debug: local tests only, ignoring Razor1
debug: local tests only, ignoring Pyzor
debug: is DNS available? 0
debug: running meta tests; score so far=3.2
debug: is spam? score=3.2 required=5
tests=DATE_MISSING,MISSING_HEADERS,NO_REAL_NAME
debug: bayes: untie-ing
debug: bayes: untie-ing db_toks
debug: bayes: untie-ing db_seen



-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to