Professional Software Engineering wrote:
# one address per line - OR partial tokens which will match substrings
# in the piped data.
BLACKLIST=$HOME/Mail/testing/somefile
:0
* $? formail -x"To:" -x"Cc:" | fgrep -i -w -f $BLACKLIST
...
Thanks Sean, it's so much easier when it's explained to you. From what
you've said, I don't actually need to call an external script, so the
above can just drop the mail depending on the return code from fgrep?
Well, I tried it and it works - and very tidy too!
Thank you again,
Steve :)
____________________________________________________________
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