Table of Contents

Method RenameAsync

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

RenameAsync(MailAccountId, string?, string?, CancellationToken)

Renames a folder, leaving it where it is.

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

Parameters

account MailAccountId

The caller's account.

folderId string

The folder.

name string

The new name.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<MailFolderActOutcome>

The renamed folder, or the refusal.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller does not hold mailfathom.mail.folders.write and mailfathom.mail.read, both of which an act needs.