From: Dave Kirkby <davek(_at_)medphys(_dot_)ucl(_dot_)ac(_dot_)uk>
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.
This works for me:
:0:
* ^From:.*\/\<[a-z0-9=+_-]+(_at_)blow(_dot_)com
* MATCH ?? ^^\/[^(_at_)]+
* $ ? grep -w $MATCH mylist
wasinlist
In the list are:
joe
pete
john
And I sent mail from joe(_at_)blow(_dot_)com(_dot_)
Btw, you don't need to specify $MAILDIR in the action line,
because procmail will always deliver to $MAILDIR unless you
specify something otherwise.
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail