473,385 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Build HTML from MIME message

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?
Nov 17 '05 #1
3 2718
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...b;en-us;260840

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

This response is supplied "as is" without any representations or warranties.
"John Mark Howell" <jm*********@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP14.phx.gbl...
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?

Nov 17 '05 #2
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.

"David Lloyd" <Da***@NoSpamPlease.com> wrote in message
news:wT***************@bignews1.bellsouth.net...
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...b;en-us;260840

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


Nov 17 '05 #3
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: <im**********@01C5B545.0D1F67A0>
Content-Location: image001.gif

R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=
Now, I'm trying to find out how to pull the image back out of that octet
string.
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John B. Kim | last post by:
I am working on the code below: ****************************************************** use strict; use MIME::Lite; use Net::SMTP; my $from = 'steve@earthlink.net'; my @addweek1 =...
2
by: Steve Mack | last post by:
I was downloading from the MSDN subscription site and used the File Transfer Manager, and was wondering if that was something I could use for my site? Is there an API that allows me to build this...
8
by: LRW | last post by:
I'm not sure this message is totally appropriate for this group, so please, if anyone has a better group suggestion, let me know! My company sends out a monthly newsletter in HTML format to our...
1
by: praba kar | last post by:
Dear All, I am new to python world. I have pasted my code which I used it to build rfc822 format mails for webbased mailing system task(which is like to yahoo.com web interface). Now I am...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
0
by: John Mark Howell | last post by:
I originally posted this in the C# group but thought that someone in the VB world might be more likely to have done something similar. I've got a MIME message that was originally an HTML email...
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
2
by: lawpoop | last post by:
Hello all -- I'm having a problem getting images to appear in the body of an HTML email using PEAR's mail_mime class. Here's my code, what am I doing wrong? include("Mail.php");...
0
by: kronus | last post by:
Hey everyone, I am stumped once more and you guys have always helped in one way or the other. I am just now starting to fool around with using PEAR to send html emails. Following the sample...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.