Re: Problem with GetBody()

Giganews Newsgroups
Subject: Re: Problem with GetBody()
Posted by:  Remy Lebeau (TeamB) (
Date: Thu, 25 Dec 2003

"Peter Neumann" <slang…> wrote in message

> idnntp1.GetBody(ListView1.Selected.index+1,Memo1.lines);

Rather than using an index, you should be using the same MessageID that you
used for the GetHeader() method.

> But the function doesn't work, the body will not retrieve,
> the idmessage is empty and i can't read the message.

The TIdMessage is empty because you did not retreive the body into the
TIdMessage to begin with, you retreived it into a TStrings instead (namely,
the Memo.Lines).



In response to

Problem with GetBody() posted by Peter Neumann on Thu, 25 Dec 2003