Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forwarding Email using Perl

Status
Not open for further replies.

buzznick

IS-IT--Management
Dec 29, 2004
39
0
0
US
Hi all,

I have a small Perl script which uses Mail::pOP3Client to periodically check an email account. It works great except for forwarding. Basically I want it to forward certain messages to a different address if found. Right now, it does this OK except for the fact that it loses the original format of the message and any attachments.

What I'm currently doing is using Mail::pOP3Client to get the headers and body and then simply using Sendmail to resend all those lines to the new address.

Obviously there's a better way to do this. Can anybody help me?

Thanks,
Nick
 
Don't worry.... I figured it out. Just needed to include *every* original header line when resending.

Nick

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top