IAsyncImapClient.UnselectFolderAsync

IAsyncImapClient.UnselectFolderAsync method

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 Task UnselectFolderAsync(bool doNotExpunge = false, IConnection connection = null, 
    CancellationToken token = default)
ParameterTypeDescription
connectionBooleanConnection to a server
doNotExpungeIConnectionSpecifies whether messages marked as deleted should be removed.
tokenCancellationTokenPropagates notification that operations should be canceled.

See Also