Internet Direct (Indy)
Home
PreviousUpNext
TIdPOP3.CheckMessages Method

Determines the number of messages stored in the mailbox for the POP3 account.

Pascal
function CheckMessages: LongInt;

longint - Number of messages in the mailbox for the POP3 client connection.

CheckMessages is a longint function used to determine the number of messages stored on the POP3 server for the POP3 account. 

CheckMessages sends the POP3 STAT command to request the statistics for the mailbox, and converts the value in the POP3 response to its numeric form. 

An exception may be raised if the server for the POP3 client connection does not support the STAT command. 

The connection to the POP3 server must already be established and authenticated using Connect or Login prior to calling CheckMessages.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.