procmail
[Top] [All Lists]

Procmail from list in file

2008-09-16 17:07:11
I'm using procmail to look for certain from addresses and copy to a local
adddres and external.   Works great but would like to read from a file
instead of making a rule for each one.

Here is what I have now:

.procmailrc

# Edit as appropriate
PATH=/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
SHELL=/bin/sh
# DIRECTORY where you want to store mail
# MAKE SURE IT EXISTS
MAILDIR=$HOME/mail
LOGFILE=$HOME/.procmail.log
VERBOSE=no # Change to 'no' once you have it working
LOGABSTRACT=all

FROM="^(From[   ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender):)(.*\<)?"

:0c
* $ ${FROM}bob(_at_)example\(_dot_)com
 ! pagejoe

:0c
* $ ${FROM}tom(_at_)example\(_dot_)net
 ! pagejoe

:0c
* $ ${FROM}example(_at_)yahoo\(_dot_)com
 ! pagejoe

# EOF



____________________________________________________________
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>