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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl scripts to reponse email with the original content

Status
Not open for further replies.

litrevor

Programmer
Nov 18, 2004
3
CA
I am writing a Perl script to automatically reponse email by copying the original email content to the bottom of the reponse email, where I am exactly stuck in.

There are different Content-Type like Text/Plain, Text/Html, multipart, and maybe more... I am trying to figure out how to support all of them.

I wonder if anyone has experience in creating general scripts which apply to any kind of Content-Type in the original message and present them in the new response email with my new content.

Regards

SamQQ
 
You actually have to handle each content type individually because you may get one or all of them in the same email.

Your best bet probably is to desconstruct the entire message using one of the Mime libraries. Then for each content type add your response and then use a mime lib to reassemble the email.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top