Re: Problem With RetrieveHeader

Giganews Newsgroups
Subject: Re: Problem With RetrieveHeader
Posted by:  Remy Lebeau (TeamB) (
Date: Mon, 3 May 2004

"Rémi Mévaere" <webmast…> wrote in message

>            comppop3.RetrieveHeader(8987564, Xmsg);

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

> For comppop3.RetrieveHeader(8987564, Xmsg);
> 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.




In response to

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