procmail
[Top] [All Lists]

Re: simple question? -- forwarding email

1998-04-06 23:10:02
On Mon, 6 Apr 1998 19:37:25 -0500, Ken Hooper <bighouse(_at_)type2(_dot_)com>
wrote:
David A. Jaffe wrote:
This works ok:
:0:
* ^TO_.*wtp*
/usr/spool/mail/wtp
:0   # Don't need a lockfile, don't need no steengking shell
* ^TO_.*wtp
! foo(_at_)bar(_dot_)com

You also want to get rid of the .* -- the ^TO_ macro already does this
for you, only it does it better than .* (which would make this match
on e.g. Cc: newtproduce or whatever) because it bounds the match to a
word boundary.

If you don't have access to the manuals locally, you can get them at
<http://www.iki.fi/~era/procmail/>

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

<Prev in Thread] Current Thread [Next in Thread>