Indy 10 - Problem with MessagePart.ContentType

Giganews Newsgroups
Subject: Indy 10 - Problem with MessagePart.ContentType
Posted by:  Andrew Lockwood (andrew.lockwo…
Date: Tue, 15 Jun 2004

I have just started playing with Indy 10 and am having a problem with the
MessagePart.Content property.

I have received the following e-mail (I have stripped out the data as it was
6 MB to start with).  But when I iterate through the messageparts, the
contenttype property of each messagepart is given as 'multipart/mixed',
whereas the contenttype of the different parts are clearly different.  It
therefore appears that the contenttype property is returning the contenttype
of the whole message, rather than of the individual messageparts.

In Indy 9, this did not happen.  Is this what is supposed to happen - in
which case, how do I find the contenttype of the individual messageparts?
Or have I found a bug?

Andrew Lockwood

Message-ID: <E23F227D69D8D71197CF0002B32BE3331DC6@NTSERVER>
Date: Mon, 14 Jun 2004 16:53:30 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: multipart/mixed;
X-Server: VPOP3 V1.5.0g - Registered
Subject: 29 Kensington High Street

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

Content-Type: multipart/alternative;

Content-Type: text/plain;

        {Message Text)

Content-Type: text/html;
Content-Transfer-Encoding: quoted-printable

        {Message Text}


Content-Type: image/jpeg;
Content-Transfer-Encoding: base64

        {Encoded Image}

Content-Type: application/octet-stream;
Content-Transfer-Encoding: base64
Content-Disposition: attachment;

        {Encoded File}