CloseMailbox Method
Removes all messages marked with 'Deleted' flag from the currently selected mailbox and unselect mailbox.
Syntax
imapcontrol.CloseMailboxRemarks
This method permanently removes all messages that have the 'Deleted' flag set from the current (selected) mailbox, and then closes (deselect) the mailbox.