Build HTML from MIME message

  • Thread starter Thread starter John Mark Howell
  • Start date Start date
J

John Mark Howell

I've got a MIME message that was originally an HTML email with embedded
images. When the email is received (to GMail) it is now in MIME format. The
HTML portion is now split out into the HTML and the images (each in a MIME
part). The MIME part for the image looks like some sort of abreviated
compressed code. Does anyone know how to extract the original HTML back out
of a MIME message?
 
John:

I am providing the cited KB article as a potential reference. It involves a
MIME filter for converting XML data to HTML. I know this is different from
your need, however, there is a project available for download which includes
source code. It is written in C++, so its value is based on your
familiarity with that language.

http://support.microsoft.com/default.aspx?scid=kb;en-us;260840

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


I've got a MIME message that was originally an HTML email with embedded
images. When the email is received (to GMail) it is now in MIME format. The
HTML portion is now split out into the HTML and the images (each in a MIME
part). The MIME part for the image looks like some sort of abreviated
compressed code. Does anyone know how to extract the original HTML back out
of a MIME message?
 
I've already started a C# MIME library but I'm having trouble with some of
the details. This may fill in the blanks. Thanks David.
 
Sorry David, but that was not much help. I can already parse multipart mime
messages, I just can't seem to work out the non-html and non-text mime part
bodies. For example, I might have a MIME body part that looks like:

------=_NextPart_000_0024_01C5B61A.7C4FB2D0
Content-Type: image/gif;
name="image001.gif"
Content-Transfer-Encoding: base64
Content-ID: <[email protected]>
Content-Location: image001.gif

R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=


Now, I'm trying to find out how to pull the image back out of that octet
string.
 
Back
Top