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.
# Next may be needed if programs are invoked from your procmailrc, but
# it should not be needed for the simple sorting recipes on this page.
# Details in Check Your $SHELL and $PATH in Troubleshooting below.
## SHELL=/bin/sh
# Directory for storing procmail configuration and log files
# You can name this environment variable anything you like
# (for example PROCMAILDIR) or, if you prefer, don't set it
# (but then don't refer to it!)
PMDIR=$HOME/.procmail
# LOGFILE should be specified ASAP so everything below it is logged
# Put ## before LOGFILE if you want no logging (not recommended)
LOGFILE=$PMDIR/killfile
# To insert a blank line between each message's log entry,
# uncomment next two lines (this is helpful for debugging)
## LOG="
## "
# Set to yes when debugging; default is no
VERBOSE=yes
# Replace $HOME/Msgs with your mailbox directory
# Mutt and elm use $HOME/Mail
# Pine uses $HOME/mail
# Netscape Messenger uses $HOME/nsmail
# Some NNTP clients, such as slrn & nn, use $HOME/News
# Mailboxes in maildir format are often put in $HOME/Maildir
#
# NOTE: Upon reading the next line, Procmail does a chdir to $MAILDIR
# and relative paths are relative to $MAILDIR
MAILDIR=$HOME/mail # Make sure this directory exists!
BLACKLIST=$HOME/.killfile
:0
*$ ? test -s $BLACKLIST
* ? (formail -x From: -x Reply-To: -x Sender: -x From | fgrep -iqf
$BLACKLIST)
/dev/null
# Blacklist. The file ~/Mail/blacklist 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 :$BLACKLIST$LOCKEXT
| (formail -x received: -x X-Envelope-From: -x from: -x sender: -x
reply-to: -x return-path:| fgrep --quiet --ignore-case
--file=$BLACKLIST)
#
:0 Wa
/dev/null
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
# Messages that fall through all your procmail recipes are delivered
# to your default INBOX. To find out yours, see step 2 above.
____________________________________________________________
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