procmail
[Top] [All Lists]

Delivered-to: header help (newbie)

1999-05-28 16:43:13
Hi, after reading man pages, web pages and how-to till my eyes are
bleeding, I'm still not quite there...

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

after playing with \/ and realizing that it didn't quite do it,
and playing with all the rest of the regexps, I realize I'm
lost.

I know it should be as simple as:

:0
* ^Delivered-To: redirect-[something here]
! [grabbeduserinnavariable](_at_)domain1(_dot_)com

but just how you do this is beyond me.

thanks for any help...
Seth


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