get new articles

Giganews Newsgroups
Subject: get new articles
Posted by:  kanta (ezopXremoveX@XremoveXpmfst.hr)
Date: Sun, 12 Oct 2003

procedure TForm1.Button4Click(Sender: TObject);
var lista:TStrings;y:integer;      //get nju artiklz
begin
    IdNNTP1.Host:='news.carnet.hr';
    IdNNTP1.Port:=119;
    IdNNTP1.Connect(-1);
    IdNNTP1.GetNewNewsList('hr.',GetTime,     
    true,'hr.comp.programiranje.delphi',lista);

    for y:=0  to lista.Count-1 do
        ListBox1.Items.Add(lista[y]);
    IdNNTP1.Disconnect;
end;

I have problem with getting new list of articles.
I tried to do this with 3 servers. Onme refuses me with no reason, one
reports me that I must use password, and the last one gives me "What?"
replay.
I haven't got server logs of servers, so I cannot know what is happening
with the communication on server side.
I have no code examples for this component.  I couldn't find it on web.
Thanks in advance for any comments or suggestions.

Replies