procmail
[Top] [All Lists]

Re: Delivered-to: header help (newbie)

1999-05-29 00:23:22
On 28 May 1999, Seth Cohn <scohn(_at_)oregonmed(_dot_)net> wrote:
[...]
the need:  to reforward email for various users, all of which is
being dumped into one email address. (yes, I've read the faqs...)

what I have:

all the email comes to forwarder(_at_)domain2(_dot_)com, from 
anyone(_at_)domain1(_dot_)com
all mail has a header: Delivered-To: redirect-anyone(_at_)domain1(_dot_)com

what I want to do is grab JUST the username [anyone] from that
and forward to anyone(_at_)domain2(_dot_)com
[...]

    Try this:

        :0
        * ^Delivered-To:[       ]+redirect-\/[^(_at_)]+
        ! $MATCH(_at_)domain2(_dot_)com

    Regards,

    Liviu Daia

-- 
Dr. Liviu Daia               e-mail:   Liviu(_dot_)Daia(_at_)imar(_dot_)ro
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc

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