Unselects the current mailbox and expunges deleted messages.
This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.
The UnselectMailbox method unselects the current mailbox. Once the mailbox has been unselected, no messages in that mailbox can be accessed, and any messages which have been flagged for deletion are removed.