procmail
[Top] [All Lists]

failed attempts to forward mail from one email to another with changes

2001-08-20 18:25:56
I'm interested in forwarding email from one company address
to another (as I'm transitioning, and will have email at both
for 30 days).


Using the following works:

:0 c
! email(_at_)newcompany(_dot_)com

But, since it is sending email "as is" some of the addresses
are "internal", and I would like to change these before it's
forwarded. So I attempted varations of the following
(Unsuccessfully)

:0 c
{
 | formail -I "To: email(_at_)newcompny(_dot_)com" -A "X-Loop: 
email(_at_)newcompany(_dot_)com" \
 | sed -e 's/internal/external/' \
 | sendmail -t
}

I believe I tried with and without a "conditon" before the
brace. The condition I had when used was

* !^X-Loop: email(_at_)newcompany


Any help appreciated. I have searched "very little", as I'm not
sure what I'm looking for -- in the archives; but I have looked.

-- 
Errol Casey
(GPG Key: Send email with Subject: send gpg )
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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