Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: "Simple" MIME file extract

www.cryer.info
Managed Newsgroup Archive

Re: "Simple" MIME file extract

Subject:Re: "Simple" MIME file extract
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Mon, 15 May 2006 11:01:15

"Bob Goldstine" <ttgchicago@aol.com> wrote in message
news:4468ac90$1@newsgroups.borland.com...

> From the above I was expecting this file (which contains HTML) to
> use the IDMessage1.MessageParts property

If the message contains JUST the HTML and nothing else, then it is possible
for it to end up in the TIdMessage.Body instead.  The MessageParts is
generally only used when the message contains *multiple* pieces.

> its using IDMessage1.Body instead (IDMessage1.MessageParts.Count = 0)
> and thus showing basically everything in the Body minus the headers.

Sounds about right.

> Im seeing the same results when including jpg attachments as well.

Attachments should always be stored in the MessageParts property.

> when I display IDMessage1.ContentType, its always 'Text/Plain'

There is no way that should be happening for the message data that you have
shown.

> For this particulae MIME file I expected multipart/alternative ...

Which version of Indy you are actually using?


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive