Paul Foster asked,
F> The standard killfile recipe:
F> :0 W: $HOME/.badpeople.lock
F> | egrep -i -f $HOME/.badpeople
F> only serves to lose their mail, not store it somewhere. But the egrep
F> line here appears to be the starting point. Anyone know how to do this
F> using a list of email addresses from a file, as above?
and Martin McCarthy has already given the direct answer to Paul's question:
M> You can turn the egrep into a condition like this:
M> :0 :
M> * ? egrep -i -f $HOME/.badpeople
M> badpeoplemail
But on a side note, I see a problem with that egrep command. In either
syntax, it will search the entire message for an expression appearing in
$HOME/.badpeople, and it will divert mail that mentions any of them just
the same as mail from one of them. Perhaps something like this
:0:
* ^From:\/.+
* MATCH ?? ? egrep -i -f $HOME/.badpeople
badpeople
will check only the contents of the From: header.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail