Topic Path: Symbol Reference > Classes > TIdPOP3 Class > TIdPOP3 Methods > CheckMessages Method
ContentsIndexHome
PreviousUpNext
TIdPOP3.CheckMessages Method

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

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.