On Mon, Jun 18, 2001 at 09:20:59AM -0400, Marshal Benton wrote:
The auto reply message contains the
From address of root(_at_)mailhost(_dot_)sss(_dot_)newdomain(_dot_)com(_dot_)
I want the From: address to read
"From: Postmaster <postmaster(_at_)newdomain(_dot_)com>"
but can not figure hot how to cause this to happen.
The one comment line in the recipe is my attempt.
Any suggestions?
Try that:
| (formail -rt -A "From: Postmaster
<postmaster(_at_)newdomail(_dot_)com"; \
That works here.
:0 HB
* ^received:(_dot_)*(_at_)olddomain\(_dot_)com
{
:0 c:
$DEFAULT
:0 HB
#| (formail -i"From: Postmaster <postmaster(_at_)newdomail(_dot_)com>"
-brt;\
| (formail -brt ;\
echo "Please be aware, this olddomain.com address will not" ;\
echo "be supported in the future. Please obtain the" ;\
echo "correct E-mail address from the recipient of" ;\
echo "this message. The correct address will contain" ;\
echo "the newdomail.com domain." ;\
echo "" ;\
echo "The original messages was delivered to $ATO." ;\
echo "" ;\
echo "Thank you for your coorperation." ;\
) | $SENDMAIL -oi -t
}
HTH,
Arvid
--
.''`. [Arvid Warnecke] [Arvid(_dot_)Warnecke(_at_)TU-Clausthal(_dot_)de]
[05323-715724]
: :' : [ICQ 55906559] [ www.mad-hatter.de ] [PGP-Subject:"get pgp key"]
`. `' Linux 2.4.2 i686 XFree86 Version 4.0.2 Uptime: 3 days, 1:06
`-- BOFH #269: Melting hard drives
pgpBAFUgWvDJ5.pgp
Description: PGP signature