Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: "Simple" MIME file extract
| Subject: | Re: "Simple" MIME file extract |
| Posted by: | "Bob Goldstine" (ttgchica..@aol.com) |
| Date: | Mon, 15 May 2006 11:34:38 |
> If the message is not MIME-encoded, or does not contain any
> attachments or multiple versions of the text (plain, html, rtf, etc), then
> the text is stored in the TIdMessage.Body property. On the other hand, if
> there are attachments, or there are multiple versions of the text, then it
> is stored in TIdText objects within the TIdMessage.MessageParts property
> instead.
From the above I was expecting this file (which contains HTML) to use the
IDMessage1.MessageParts property, but its using IDMessage1.Body instead
(IDMessage1.MessageParts.Count = 0) and thus showing basically everything in
the Body minus the headers. Im seeing the same results when including jpg
attachments as well. All I want to grab is the actual text of the email so
Im still missing something.
Also, when I display IDMessage1.ContentType, its always 'Text/Plain' For
this particulae MIME file I expected multipart/alternative ... I think may
be a hint?!?
Any idea as to whats going on?
--------------------------------------------------------------
Content-class: urn:content-classes:message
Subject: Req Issue
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C6729E.E0EA3334"
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Date: Mon, 8 May 2006 08:56:53 -0400
Message-ID:
<1703B9A226FAE448A0755D83E34A135D1A5593@exchange.XXXXXXXXX.local>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Req Issue
Thread-Index: AcZynuDobPPfaBiBTOuY2C/kcQawYA==
From: "Nick Bomia" <nick@XXXXXXX.com>
To: "Gilbert Shaw" <GilbertS@XXXXXXXX.com>
This is a multi-part message in MIME format.
------_=_NextPart_001_01C6729E.E0EA3334
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
GIlbert,
=20
Our internet is down so I have not been able to log in. We've called
the people who are supposed to get it up and running but how long it
will take I don't know.
=20
The minute the internet is back I'll take a look at your issue.
=20
-Nick
------_=_NextPart_001_01C6729E.E0EA3334
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.3790.2666" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D028303812-08052006><FONT face=3DArial=20
size=3D2>GIlbert,</FONT></SPAN></DIV>
<DIV><SPAN class=3D028303812-08052006><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D028303812-08052006><FONT face=3DArial size=3D2>Our =
internet is down=20
so I have not been able to log in. We've called the people who are =
supposed to get it up and running but how long it will take I don't=20
know.</FONT></SPAN></DIV>
<DIV><SPAN class=3D028303812-08052006><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D028303812-08052006><FONT face=3DArial size=3D2>The =
minute the=20
internet is back I'll take a look at your issue.</FONT></SPAN></DIV>
<DIV><SPAN class=3D028303812-08052006><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D028303812-08052006><FONT face=3DArial=20
size=3D2>-Nick</FONT></SPAN></DIV></BODY></HTML>
------_=_NextPart_001_01C6729E.E0EA3334--
.