Re: get new articles

Giganews Newsgroups
Subject: Re: get new articles
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Tue, 14 Oct 2003

"kanta" <ezopXremoveX@XremoveXpmfst.hr> wrote in message
news:MPG.19f33c0afd6daaa49896…@news.atozedsoftware.com...

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

Gambit

Replies

None

In response to

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