Internet Direct (Indy) Version 9.0.2 Beta
TIdNNTPServer.OnCommandXPat
Specifies the NNTP XPAT command event handler.

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

XPAT is a Common NNTP Extension as described in RFC 2980, and is used to retrieve specific headers from specific articles, based on pattern matching on the contents of the header.

The required header parameter is the name of a header line in a news group article, as described in RFC 1036.

The required range argument can consist of a single article number, a starting article number, or a starting and ending article number. For example:

The required message-id argument indicates a specific article. The range and message-id arguments are mutually exclusive.

At least one pattern in wildmat must be specified as well. If there are additional arguments the are joined together separated by a single space to form one complete pattern.

Successful responses include the headers from all messages in which the pattern matched the contents of the specified header line. This includes an empty list. Once the output is complete, a period is sent 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