Internet Direct (Indy) Version 9.0.1 Beta
TIdMailBox.TotalMsgs
Indicates the number of messages in the currently selected mailbox.

property TotalMsgs: LongInt;
Description
TotalMsgs is a LongInt property that indicates the number of messages in MessageList for the currently selected mailbox. TotalMsgs is updated when the IMAP client performs a call to either the SelectMailBox, ExamineMailBox, or StatusMailBox methods.