Internet Direct (Indy) Version 9.0.2 Beta
TIdIMAP4.CheckMailBox
Requests a checkpoint of the currently selected mailbox.

function CheckMailBox: Boolean;
Returns
Boolean - True on success.

Description
CheckMailBox is a Boolean function that requests a checkpoint of the currently selected mailbox. A checkpoint refers to the IMAP4 server-specific housekeeping associated with a mailbox that is not normally executed as part of each IMAP4 command.

CheckMailBox requires that ConnectionState contain the value csSelected or an EIdConnectionStateError exception wil be raised.

CheckMailBox executes the IMAP4 CHECK command, and sets the return value to indicate if the server response in ResultNo is wsOk.