Running a script from procmail
procmail at rowyerboat.com
Fri Sep 29 23:57:42 CEST 2006
I want to be able to examine a text file containing users (one user per
line), and drop any mail if a match is found to that user. So, this
question is in 3 parts:
To avoid acting on fake headers (and blank envelope From's), should I
match on "X-Original-To:" (which I think is put there by sendmail)
instead of To:?
From the examples I've seen and the procmail documentation, should the
recipe user flags "fwh". That is assuming I only need to pass the
headers to the external script.
I can use the grep command in an external script and get a return value,
and was thinking of adding an X- header to the message and let procmail
filter it out a later stage. I'm not sure how to get the header back to
Does this all make sense?
More information about the procmail