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

property OnCommandTakeThis: TBasicEvent;
Description
OnCommandTakeThis identifies the TDoByIDEvent event handler used to respond to the NNTP TAKETHIS command.

TAKETHIS is a Common NNTP Extension as described in RFC 2980, and is used to send articles to a server when in streaming mode. The entire article (header and body) is sent immediately after the peer sends the TAKETHIS command. The peer does not have to wait for a response from the server before sending the next command and the associated article.

During transmission of the article, the peer should send the entire article, including header and body, in the manner specified for text transmission from the server. See RFC 977 for details.

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