Re: Problem with GetBody()

Giganews Newsgroups
Subject: Re: Problem with GetBody()
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Thu, 25 Dec 2003

"Peter Neumann" <slang…@web.de> wrote in message
news:r4iluvgh2rdtfeovig26c3hkpov5f3qr…@4ax.com...

> 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).

Gambit

Replies

In response to

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