Internet Direct (Indy) Version 9.0.1 Beta
TIdNNTPServer.OnCommandList
Specifies the NNTP LIST command event handler.

property OnCommandList: TBasicEvent;
Description
OnCommandList identifies the TNewsEvent event handler used to respond to the NNTP LIST command, as described in RFC 977.

LIST is used to retrieve a list of valid newsgroups and associated information. Each newsgroup is sent as a line of text containing the group name, last message number, first message number, and a flag to indicate if posting to the newsgroup is allowed ('y') or prohibited ('n').

Note: Posting may still be prohibited to a client even though the LIST command indicates that posting is permitted to a particular newsgroup. The posting flag exists for each newsgroup because some newsgroups are moderated or are digests, and therefore cannot allow posting.

Applications should assign a procedure to the event handler in order to respond to the NNTP command, or the server will return the default message:

  500 command not recognized