Internet Direct (Indy) Version 9.0.2 Beta
TIdNNTPServer.OnCommandIHave
Specifies the NNTP IHAVE <message-id> command event handler.

property OnCommandIHave: TBasicEvent;
Description
OnCommandIHave identifies the TDoByIDEvent event handler used to respond to the NNTP IHAVE command, as described in RFC 977.

IHAVE is used to inform the server that the client has an article with the specified message-id.

If the server desires a copy of that article, it will return a response instructing the client to send the entire article including headers and body. If the server does not want the article (if, for example, the server already has a copy of it), a response indicating that the article is not wanted should be returned.

Because the server may not be able to decide immediately that an article is inappropriate for posting or forwarding, it is acceptable to acknowledge the successful transfer of the article and to later silently discard it.

IHAVE differs from the POST command in that it is intended for use in transferring already-posted articles between hosts.

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