On 12/13/06, Professional Software Engineering
<PSE-L(_at_)mail(_dot_)professional(_dot_)org> wrote:
:0
* ^To:[ ]*\/[^ ].*
* $? grep $MATCH -f key_list
The first condition extracts the text of the To: header to the $MATCH
variable. The second, greps that against your key list file.
That's not equivalent to his original, though. He'd need something more like:
* $ ? echo "$MATCH" | grep -f key_list
I believe the leading "$" could also be dropped there because the
shell will expand $MATCH from the environment. Also as only the exit
status is interesting, modern grep will accept a -q option to suppress
the output. So:
* ? echo "$MATCH" | grep -qf key_list
____________________________________________________________
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