David A. Jaffe wrote:
This works ok:
:0:
* ^TO_.*wtp*
/usr/spool/mail/wtp
However, what I really want to do is to forward the mail elsewhere.
Any ideas on how I could do this?
One idea would be to key man procmail (procmailex, procmailrc). 8)
Your condition might not be what you want, you have it matching anything
sent to an address procmail can divine that contains the string "wt", not
"wtp" which might be what you meant to specify--in any case this is where
the message in question was sent, not where you want to forward it, your
message implies the latter.
Bounce the message that matches the conditions(s) with "!", which means
something entirely different in an action line than it does in a condition
line:
:0 # Don't need a lockfile, don't need no steengking shell
* ^TO_.*wtp
! foo(_at_)bar(_dot_)com
--Ken
68 Westy, Admin --type2-- The Volkswagen Bus Mailing List