in reply to Modify and redirect SMTP mail help!
I'm a big fan of Mail::Audit, so my way to accomplish this would be something like (untested)
use Mail::Audit; # read message from STDIN my $mail = Mail::Audit->new(); $mail->delete_header("Message-ID"); # set To: header if you want to # (not necessary for resend(), just for the look of it) $mail->replace_header("To", "Some Guy <someone@somewhere.com>"); $mail->resend("someone@somewhere.com");
Note that your MTA might add a new Message-ID for you if you don't specify one. This is beyond Mail::Audit's control.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Modify and redirect SMTP mail help!
by Limbic~Region (Chancellor) on May 02, 2003 at 17:58 UTC | |
by crenz (Priest) on May 02, 2003 at 18:01 UTC |