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

from Mime to text and bcak to MIME 1

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Hallo People,

Need some pointers here. I need to convert an incoming email. The headers are fine, but the body is in base64 MIME. I need to decode the body from MIME to plain text (I can do that with reformime), modify it with some scripting, then re-encode the body back to MIME, and re-assemble the email.

Has anybody done something similar? How do you re-encode to MIME?

Any pointers much appreciated.
 
feherke,
Excellent solution.
I didn't even know that "recode" existed.
Shame on me! :)

A star for you for enlightening me.



Trojan.
 
Many thanks for that. Suppose the incoming email has now been split into two files.

Header (plain text)
Body (plain text) - converted from MIME

How would I reassemble the entire email, including the headers? So that the end result is

Header (plain text)
Body (MIME)

Maybe I am just not seeing the obvious.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top