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

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

XGTITLE is a Common NNTP Extension as described in RFC 2980, and is used to retrieve news group descriptions for specific news groups. This extension first appeared in ANU-NEWS, an NNTP implementation for DEC's VMS. The optional parameter is a pattern in wildmat format.

When executed, a 282 response is given followed by lines that have two fields, the news group name (which matches the pattern in the argument) and a short explanation of the purpose of the news group. When no argument is specified, the default argument is the current group name. When display is completed, the server sends a period on a line by itself.

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

Note: The XGTITLE command and the LIST NEWSGROUP command provide the same functionality with different response codes. Since this command provides the same functionality as LIST NEWSGROUP it is suggested that this extension be deprecated and no longer be used in newsreading clients.

Note: There is a conflict in one of the response codes from XGTITLE and some of the authentication extensions.