procmail
[Top] [All Lists]

Re: Creating a "Don't Kill" file...

2001-01-10 11:10:04
#----Likely to be Spam!---
:0: $PMDIR/spam.lock
* !^TObyte-sized
* ! ?grep -s `formail -x 'From '` notspam.txt
! my_spam(_at_)hotmail(_dot_)com

I have a much less elegant solution, but it seems to work for me.
Sean's is probably better, but here's mine anyway:

    :0 hWc: list.known.good.swp
    | formail -rtzxto: | grep -if list.known.good > /dev/null

    :0a:
    $DEFAULT

This says that if sender is in the whitelist, let the mail in.  I
spam-file or toss stuff later on in the rc file.  My list.known.good
file has entries in the form

    username(_at_)isp\(_dot_)net

I don't put '$' at the end although I probably should; escaping the '.' 
characters is close enough for me, at least for the time being.  Also,
someone (Philip I think) suggested that I remove 't' from the formail
flags.

well, it's a starting point anyway...
-- 
Neither I nor my employer will accept any liability for any problems
or consequential loss caused by relying on this information.  Sorry.
Collin Park                         Not a statement of my employer.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>