Re: get new articles

Giganews Newsgroups
Subject: Re: get new articles
Posted by:  Remy Lebeau (TeamB) (
Date: Tue, 14 Oct 2003

"kanta" <> wrote in message

>    IdNNTP1.GetNewNewsList('hr.',GetTime,
> true,'hr.comp.programiranje.delphi',lista);

That is a very ineffective way to get new messages because of the overhead
involved in performing the necessary lookups on the server end.  In fact,
some servers even disable the NEWNEWS command nowadays, which apparently is
what you are running across.  Instead, you should keep track of the last
highest MsgNo that you download.  The next time you reconnect, the
TIdNNTP::MsgLow and TIdNNTP::MsgHigh properties will automatically be filled
in.  Using those along with your last known tracking number, you can use the
XOVER() and ParseXOVER() methods instead, specifying the msg numbers in
between your last known number and the current MsgHigh number.




In response to

get new articles posted by kanta on Sun, 12 Oct 2003