Table of Contents

Method RenameAsync

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

RenameAsync(MailAccountId, LocalMailFolderId, string?, CancellationToken)

Renames a folder.

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

Parameters

account MailAccountId

The caller's account.

folderId LocalMailFolderId

The folder.

name string

The new name as supplied.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<LocalMailFolderEditOutcome>

The renamed folder, or the refusal.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller does not hold mailfathom.mail.folders.write.