UnselectFolder

ImapClient.UnselectFolder method (1 of 4)

Permanently removes all messages marked as deleted for currently selected folder and removes selected-state for this folder.

public void UnselectFolder(IConnection connection)
Parameter Type Description
connection IConnection Connection to a server

See Also


ImapClient.UnselectFolder method (2 of 4)

Permanently removes all messages marked as deleted for currently selected folder and removes selected-state for this folder.

public void UnselectFolder()

See Also


ImapClient.UnselectFolder method (3 of 4)

Unselects folder which are currently selected. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

public void UnselectFolder(IConnection connection, bool doNotExpunge)
Parameter Type Description
connection IConnection Connection to a server
doNotExpunge Boolean Specifies whether messages marked as deleted should be removed.

See Also


ImapClient.UnselectFolder method (4 of 4)

Unselects folder which are currently selected. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

public void UnselectFolder(bool doNotExpunge)
Parameter Type Description
doNotExpunge Boolean Specifies whether messages marked as deleted should be removed.

See Also