> Thats for the reply. However, I didn't make my problem clear.
> I'm looking for the ContentType (i.e. text/html or application/zip or
> multipart/mixed, etc). The TidMessage.ContentType works fine, and for the
> couple of e-mails I am working with, comes out as multipart/mixed or
> multipart/alternative.
> However, what I really need is the ContentType for TidMessagePart (i.e..
> TidAttachment.ContentType or TidText.ContentType). The content-type
headers
> exist for each of the MIME messageparts, but they are not being stored in
> the TidMessagePart items.
> "Allen - Team Indy" <aoneillSPAMMKIL...@ipa.net> wrote in message
> news:3b5fe835_1@dnews...
> > The MailClient demo is being updated inline with 9.0. To determine
message
> > part types do the following:
> > for i := 0 to MessageParts.count - 1 do
> > if MessageParts(i) is TidText then DoThis
> > else if MessageParts(i) is TidAttachment DoThat
> > /A.
> > "Jim Gilmartin" <jbg@sys(nospam)dyn.com> wrote in message
> > news:3b5f836f_1@dnews...
> > > Hi, I don't know if I'm doing something wrong, but when I decode a
> message
> > > from TidPop3, I never seem to get the content type from multipart
> > messages.
> > > They are all blank. When I looked at the demos, at least one had
> > references
> > > to the messagepart content-types commented out. When I uncommented
those
> > > lines, they were blank as well.
> > > I can get the content-type for the message. But none of the
messageparts
> > > have a content type listed, which make it very hard to find out what
> type
> > of
> > > attachment or Text type (eg text/html) the message part is.
> > > I looked at the raw message and there are headers with content type
for
> > each
> > > of the messageparts, so the data is there.
> > > I have also tried looking at the .Headers and .ExtraHeaders properties
> to
> > > see if the information end's up there, but it doesn't.
> > > Any help would be greatly appreciated.