procmail
[Top] [All Lists]

Re: Friends list... not blacklist

2004-09-17 18:14:37
* Poohba <poohba(_at_)blkpoohba(_dot_)dyndns(_dot_)org> :
I thought that if I added a section to the .procmailrc similar to the
blacklist recipe but change everywhere there's blacklist to friendlist
and save it to friends instead of /dev/null it would work.  Well, it
didn't.  It appeared everything was going either to friends or /dev/null
I have a list of emails in my friends list but that didn't seem to do
anything.

<snip non-friendlist recipes>
FRIENDLIST=$HOME/.friends
:0
*$ ? test -s $FRIENDLIST
* ? (formail -x From: -x Reply-To: -x Sender: -x From | fgrep -iqf
$FRIENDLIST)
friends

# Friendlist. The file ~/.friends contains a list of addresses (one per
# line) that are matched against the sender. If there is a match, then
# the sender is blacklisted and we send the mail to the bit bucket
#
LOCKEXT=.lock
:0 Whic :$FRIENDLIST$LOCKEXT
| (formail -x received: -x X-Envelope-From: -x from: -x sender: -x
reply-to: -x  return-path:| fgrep --quiet --ignore-case
--file=$FRIENDLIST)
#
:0 Wa
friends

INCLUDERC=$PMDIR/rc.filters
INCLUDERC=$PMDIR/rc.phone

I have a similar philosophy, but use this recipe
(whitelist=friendlist) :

# I like to just use my alias/addressbook as my whitelist
WHITELIST=$HOME/.aliases

:0:
* ^From:.*\/[A-Za-z0-9_(_dot_)+-]+(_at_)[A-Za-z0-9_(_dot_)+-]+
* ? grep -i "$MATCH" $WHITELIST
white

-- 
T R O Y  P I G G I N S
e : troy(_at_)piggo(_dot_)com

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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