Re: Problem With RetrieveHeader

Giganews Newsgroups
Subject: Re: Problem With RetrieveHeader
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Mon, 3 May 2004

"Rémi Mévaere" <webmast…@remixtech.com> wrote in message
news:56886F00C99BE240webmast…@remixtech.com...

>            comppop3.RetrieveHeader(8987564, Xmsg);

That line should be throwing an exception if it fails to download the
requested message.

> For comppop3.RetrieveHeader(8987564, Xmsg);
<snip>
> return -> 02/05/2004 23:44:49

The only way that could happen is if you are re-using the same TIdMessage
instance each time, and you are not calling Xmsg.Clear() before calling
RetreiveHeader() each time.  You have to call Clear() yourself,
RetreiveHeader() does not do it for you.

Gambit

Replies

None

In response to

Problem With RetrieveHeader posted by Rémi Mévaere on Mon, 3 May 2004