Discuss this help topic in SecureBlackbox Forum
IMAP: Get the current (active) mailbox
All operations, related to the mailbox, are performed on the selected mailbox. To find out which mailbox is currently selected, use the Mailbox property. To obtain information about currently selected mailbox, read the properties of MailboxState object.
Examples:
C#:
client.SelectBox(mailBoxName);
MessageText = "You have " + client.MailBoxState.TotalMessages + " messages, " + client.MailBoxState.UnseenMessages + " unseen";
Delphi:
Client.SelectBox(MailBoxName);
MessageText := 'You have ' + IntToStr(Client.MailBoxState.TotalMessages) + ' messages, ' + IntToStr(Client.MailBoxState.UnseenMessages) + ' unseen';