Re: spamassassin/user_prefs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Charles Howse wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 24 March 2004 08:29 am, Markku Kolkka wrote:

Charles Howse kirjoitti viestissään (lähetysaika keskiviikko, 24.

maaliskuuta 2004 15:18):

The question is:  is it wrong to train spamassassin by running
sa --learn on the same msgs ( + or -  a few) over and over?

sa-learn remembers the messages it has already seen and ignores them if you try to teach them again. So, it's not wrong, just a waste of time.


That's good to know. :-)
So I could set a cron job to run once a month, in the wee hours and have it do:


#!/bin/bash

for i in Fedora inbox Kent Saved Stooges ; do

        echo "Learning from" $i
        sa-learn --ham --dir /home/charles/Mail/$i/*

done

sa-learn --spam --dir /home/charles/Mail/Spam/*

exit 0

The results would then be emailed to me from the cron daemon.


Don't do the inbox in the wee hours, any new messages you receive between the last to time you looked at your mail and the time the cron job runs will be learned as ham, even if it's spam. You'd need to undo that manually.


Also, be careful if you use imap. If you move/delete messages from a mailbox they remain until those changes are committed. When that actually happens depends on the mail client and how it's configured. So, there's a possibility that spam might remain in your inbox even after you've deleted/moved it.

(Don't forget to make sure sa-learn is on the path for cron).

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
            University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@xxxxxxxxxxxx
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux