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

property OnCommandMode: TBasicEvent;
Description
OnCommandMode identifies the TNewsEvent event handler used to respond to the NNTP MODE command.

MODE is a Common NNTP extension as described in RFC 2980. MODE is used to notify the server that the client is either a news reader or a streaming host. When the event handler parameter is 'READER', the client is a news reader and can be contrasted with the NNTP SLAVE command. When the event handler parameter is 'STREAM', the client wishes to avoid the conversational nature of NNTP by sending commands in a stream.

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