Editing Mail Headers...
Hi all:
I have exim set up to call a filter that changes my address in the
From: header from my local address to the one assigned to me by my
ISP. Apparently this changes only the From: content, however, the
>From (no colon) heading still shows my local email address.
This has caused some confusion with some people at school. They see
the From address, but not the From: address.
Is there a way to change the From address also? Here is the script I
use (stolen from LG#43):
#!/usr/bin/perl
$address = 'mwagnon1@home.com';
while (<>) {
if (/^From /) { s/<.*>/<$address>/; print; last; }
# I added the above to see if it would change the address, but
# it doesn't
if (/^From: /) { s/<.*>/<$address>/; print; last; }
print; }
while (<>) { print; }
Is changing the From possible/allowed?
Thanks for any insight...
--
__ _
Mark Wagnon ( Debian GNU/ -o) / / (_)__ __ ____ __
Chula Vista, CA ) /\\/ /__/ / _ \/ // /\ \/ /
mwagnon1@home.com ( _\_v____/_/_//_/\_,_/ /_/\_\
Reply to: