Internet Direct (Indy) Version 9.0.1 Beta
TIdPOP3.CheckMessages
Gets the number of messages on the POP3 server.

function CheckMessages: longint;
Returns
LongInt - Number of messages in a mailbox on the POP3 server.

Description
CheckMessages is a LongInt function that returns the total number of messages currently in a mailbox on the POP server. CheckMessages performs the POP3 STAT command to retrieve the current message count from the POP3 server.

CheckMessages will return 0 (zero) if an exception is raised during execution of the method.