Dave Kirkby (davek(_at_)medphys(_dot_)ucl(_dot_)ac(_dot_)uk) wrote:
I have a rule in my .procmailrc, which mathes one email address.
:0
* ^From:(_dot_)*someone(_at_)foo(_dot_)com
$MAILDIR/ok
I want to have lots of such rules, but it would be much easier to add them
if the email addresses could be in a 'whitelist' file, so I could get
the effect of the above rules ofr any email addres in the file.
How can I do this?
Hi,
This might work for you, something I found searching google and
modified slightly for my own testing:
FGREP=`which fgrep`
FROM=`formail -x From:`
REC=`formail -x Received:`
:0E
* ? (echo "$FROM" | $FGREP -i -f $HOME/ok)
{
LOG="OK "
:0
$MAILDIR/ok
}
Let me know how it works for you.
--
Mike
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail