Board index » delphi » TIdPOP3 ContentType?

TIdPOP3 ContentType?

    Msg := TIdMessage.Create(nil);
    idPOP.Retrieve(iMsg, Msg);

    with Msg.MessageParts do
      for iPart := 0 to Msg.MessageParts.Count - 1 do
        Writeln(Items[iPart].ContentType);

    Msg.Free();

The Body for the items is correct if I put in a
Writeln(Items[iPart].Body.Text) (console mode app), but ContentType is
always empty, am I forgetting something or is this a bug in Indy?

(I'm using Indy 9)

Mark van Renswoude

 

Re:TIdPOP3 ContentType?


"M. van Renswoude" <psprogramm...@NOSPAM.multimania.com> wrote in message
news:3c04cd61$1_1@dnews...

Quote
> The Body for the items is correct if I put in a
> Writeln(Items[iPart].Body.Text) (console mode app), but ContentType is
> always empty, am I forgetting something or is this a bug in Indy?

> (I'm using Indy 9)

There have been revisions since the packaged release of 9.0.2B on the web
site, that should address this problem.  Specifically, IdMessageClient.pas
was changed to free the message part decoder after creation of the text part
in ProcessTextPart. (10/14/2001)

You can download the latest revisions from the FTP server at
ftp://indy90:ind...@ftp.nevrona.com, or wait for the next packaged release
(release date unknown at this time).

hth...

Re:TIdPOP3 ContentType?


Quote
> There have been revisions since the packaged release of 9.0.2B on the web
> site, that should address this problem.  Specifically, IdMessageClient.pas
> was changed to free the message part decoder after creation of the text
part
> in ProcessTextPart. (10/14/2001)
> You can download the latest revisions from the FTP server at
> ftp://indy90:ind...@ftp.nevrona.com, or wait for the next packaged release
> (release date unknown at this time).
> hth...

That sure helped, thanks, works great!

Other Threads