Table of Contents

Method RenameAsync

Namespace
MailFathom.Application.Folders
Assembly
MailFathom.Application.dll

RenameAsync(MailAccountId, MailFolderAlias, string?, CancellationToken)

Renames a folder on the mail server and points its declaration at the new path.

public Task<MailFolderActOutcome> RenameAsync(MailAccountId account, MailFolderAlias folderAlias, string? name, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account, by its generated identifier.

folderAlias MailFolderAlias

The folder.

name string

The new name as supplied.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<MailFolderActOutcome>

The renamed folder, or the refusal.