Internet Direct (Indy) Version 9.0.1 Beta
|
function ExamineMailBox(const AMBName: String; AMB: TIdMailBox): Boolean; overload;
ExamineMailBox returns the same output as SelectMailBox, except for the read-only attribute applied to the mailbox, flags, and messages.
ExamineMailBox requires that the value of ConnectionState contain either csAuthenticated or csSelected, or an EIdConnectionStateError exception will be raised.
ExamineMailBox calls SendCmd using the IMAP EXAMINE command. When ResultNo contains wsOk, the ParseSelectResultDetails method is called to populate the TIdMailBox instance specified by AMB.