Internet Direct (Indy) Version 9.0.1 Beta
TIdPOP3.GetResponse
Provides numeric response codes for POP3 protocol requests.

function GetResponse(const AAllowedResponses: array of SmallInt): SmallInt; override;
Parameters
const AAllowedResponses: array of SmallInt
Response code expected or allowed in the response.

Returns
SmallInt - Numeric response code for the response.

Description
GetResponse is an overridden SmallInt function in TIdPOP3, and allows the POP3 client implementation to provide numeric response codes in a fashion consistent with other RFC-based protocols.

Note: The POP3 protocol does not provide numeric response codes, but instead uses '+OK' and '-ERR' in protocol response messages. GetResponse is overridden to capture these alphabetic responses, and convert them into the values wsOk and wsErr which can be stored in the ResultNo property.

GetResponse calls the inherited CheckResponse method to determine if ResultNo is in the allowable responses for the protocol request.