Hunny Software Library Reference

Imap4Client.Close Method 

Sends a CLOSE command.

[Visual Basic]
Public Sub Close()
[C#]
public void Close();

Remarks

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).

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Imap4Client Class | Hunny.Mail Namespace | CLOSE command in the IMAP4 specification