[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Copying Mail



"Ted Behling" <TBehling@xxxxxxxxxxxxx> wrote:
> At 08:41 AM 9/7/01, Colin J. Raven wrote:
> >Easily achieved with procmail.
> >--snip--
> >#now to business
> >
> >:0
> >* ^To: .*\<user@sitename\.tld>
> >         {
> >         :0c
> >         ! otheruser@xxxxxxxxxxxx
> >         }
>
> Isn't this limited to acting on the To: header?  What if the recipient's
> address is specified in a Cc: header, or not at all, via BCC?  Your
> introduction to Procmail is appreciated, but I feel this problem is more
> reliably handled with the 'aliases' file, as Dom suggested.

Yes, that only processes it if it's the To: header.  To match the To or Cc
headers you'd write as:

^(To|Cc)

^TO_ will accomplish the same thing, matching other destination headers as
well.  Read a procmail tutorial for more info.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/