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

property OnCommandPost: TBasicEvent;
Description
OnCommandPost identifies the TGetEvent event handler used to respond to the NNTP POST command, as described in RFC 977.

POST is used to inform the server that a news article will be presented in the format identified by RFC 850. The server must return a response code that indicates posting is allowed, or prohibited for installation-dependent reasons.

When posting is permitted, the server must be prepared to accept the text forming the header and body of the message from the client. No attempt should be made to filter characters, fold or limit lines, or otherwise process incoming text. The server should pass the incoming message to be posted to the server installation's news posting software, which is separate from this specification. See RFC850 for more 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