On Mon, 8 Dec 2003 10:12:05 -0500, stan wrote:
>  I'm setting up Spamassain, and I can't seem to find out how to create
>  a whitelist for it.
> 
>  I will be retrieving my mail using fetchmail, then pasing it to
>  procmail, which will call somassain. If it matters my MUA of choice
>  is mutt.

Since you're using procmail you can easily implement the whitelist
directly from within it.  For example, place the following before the
spamassassin recipe:

  :0:Inbox.lock
  * ? formail -x"From" -x"From:" -x"Sender:" -x"Reply-To:" -x"Return-Path:" \
    | grep -iqsF -f /home/mine/Mail/known
  Inbox

I also have a script that runs when ppp starts that builds this
whitelist from my KDE addressbook.

  #!/bin/sh

  INFILE=$HOME/.kde/share/apps/kabc/std.vcf
  OUTFILE=$HOME/Mail/known

  grep "EMAIL:" ${INFILE} | sed -e "s/^EMAIL://" | \
  $//" | sort > ${OUTFILE}

You should be able to do the equivalent with mutt's addressbook.  

The benefit being that to whitelist someone you simply need to add them
to your addressbook.  No messing around with spamassassin.

If you're not on a dial-up or once at connect isn't frequent enough, you
can put the addressbook extract script into a cron job.

- W. Citoan
-- 
Thus spake the master programmer:
        "Time for you to leave."
                -- Geoffrey James, "The Tao of Programming"


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to