Problem With RetrieveHeader

Giganews Newsgroups
Subject: Problem With RetrieveHeader
Posted by:  Rémi Mévaere (webmast…@remixtech.com)
Date: Mon, 3 May 2004

Hello,

I have a small problem with retrieveHeadear

I have two mail on the server
1 -> 02/05/2004 23:44:49
2 -> 03/05/2004 12:33:02

            Xmsg := tidmessage.Create(nil);
            comppop3.RetrieveHeader(8987564, Xmsg);
                  application.MessageBox(pchar(datetostr(Xmsg.Date) + ' ' +
timetostr(Xmsg.Date)),'t',mb_ok);

            Xmsg.free;

For comppop3.RetrieveHeader(1, Xmsg);

comppop3.RetrieveHeader(1, Xmsg);
application.MessageBox(pchar(datetostr(Xmsg.Date) + ' ' +
timetostr(Xmsg.Date)),'t',mb_ok);

return -> 02/05/2004 23:44:49

For comppop3.RetrieveHeader(2, Xmsg);

comppop3.RetrieveHeader(2, Xmsg);
application.MessageBox(pchar(datetostr(Xmsg.Date) + ' ' +
timetostr(Xmsg.Date)),'t',mb_ok);

return -> 02/05/2004 23:44:49

For comppop3.RetrieveHeader(8987564, Xmsg);

comppop3.RetrieveHeader(8987564, Xmsg);
application.MessageBox(pchar(datetostr(Xmsg.Date) + ' ' +
timetostr(Xmsg.Date)),'t',mb_ok);

return -> 02/05/2004 23:44:49
what is the problem ???

thanks

Replies