Internet Direct (Indy) Version 9.0.2 Beta
TIdMailBox.State
Indicates if the mailbox allows read and write access.

property State: TIdMailBoxState;
Description
State is a TIdMailBoxState property that indicates the mailbox state detected in the results for TIdIMAP4.SelectMailBox.

msReadWrite indicates that the currently selected mailbox allows creating new messages, updating message flags and attributes, and deletion of messasges.

msReadOnly indicates that the currently select mailbox will nbot allow updates to the IMAP mailbox.