Sends a CLOSE command.
A CLOSE command requests the server to close the currently selected mailbox. When the server closes a mailbox, it permanently deletes (expunges) all messages in the mailbox that are marked with the \Deleted flag. After a CLOSE command, the server is no longer in the SELECTED state (that is, there is no mailbox currently selected).
| Exception Type | Condition |
|---|---|
| Exception | If a network or protocol error occurs. |
Imap4Client Class | Hunny.Mail Namespace | CLOSE command in the IMAP4 specification