Internet Direct (Indy) Version 9.0.1 Beta
TIdNNTP.GetNewGroupsList
Retrieves new newsgroups from an NNTP server.

procedure GetNewGroupsList(const ADate: TDateTime; const AGMT: boolean; const ADistributions: string); overload;
procedure GetNewGroupsList(const ADate: TDateTime; const AGMT: boolean; const ADistributions: string; AList: TStrings); overload;
Description
GetNewGroupsList is a procedure that requests a list of newsgroups from a news-server which were added after a specific date and time (ADate), and is usually used to update a list newsgroup list in a newsreader.

Set AGMT to True to indicate that the time is based on Greenwich Mean Time or Universal Time (0 meridian) or false for the local time-zone.

ADistributions is an optional list of distributions such as "nj", "dc".

There are two ways to get newsgroups with this procedure. First, call GetNewGroups with no parameters and use the OnNewGroupsList event. Secondly, call the GetNewGroups with the AList parameter.

AList will then contain the newsgroup data which you can parse with the ParseNewsGroup procedure in the IdNNTP.pas unit.