Hi,
I want to forward all mails to a specific email-adress to a
fax, but I have the prob that the services (faxaway.com
etc.) only forward mail from ONE adress that I have to give
when registering. So, I need to change every mail that is
forwarded to an adress (i.e. wow(_at_)domain(_dot_)com) to
hey(_at_)domain(_dot_)com(_dot_) The mails have look like they were coming
from one adress. A friend (many thanks to Roland!) has written the
following script, but it does not work. I got a copy, but it does not
go to faxaway. Any idea?
:0
* ^X-Envelope-To:.<wow(_at_)domain(_dot_)com>
* < 50000
* !^X-Loop: wow(_at_)domain(_dot_)com
{
FROM=`formail -xFrom:`
TO=`formail -xTo:`
| ( formail -t -I"From: hey(_at_)domain(_dot_)com" \
-I"To: 49211676219(_at_)faxaway(_dot_)com" -I"Bcc:
kater(_at_)www-marketing(_dot_)com"
\
-I"X-Loop: wow(_at_)domain(_dot_)com" ; \
echo "### original message from:$FROM to:$TO ###" ) \
| $SENDMAIL -f hey(_at_)domain(_dot_)com -oi
49211676219(_at_)faxaway(_dot_)com
}
Tschüß,
Michael Kater
______________________________________________________
+ Virtuelle Gemeinschaften +
+ http://www-marketing.com/virtuelle_gemeinschaft +
+ Privat: http://michael.kater.com +
+ Neanderstr.4 40233 Düsseldorf Tel/Fax+49-211676219 +
+ PGPKey-Autoresponder mailto:pgp(_at_)michael(_dot_)kater(_dot_)com +
+____________________________________________________+