Table of Contents

Method MoveAsync

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

MoveAsync(MailAccountId, string?, string?, CancellationToken)

Moves a folder, with everything beneath it, to another place in the hierarchy.

public Task<MailFolderActOutcome> MoveAsync(MailAccountId account, string? folderId, string? parentId, CancellationToken cancellationToken)

Parameters

account MailAccountId

The caller's account.

folderId string

The folder.

parentId string

The folder to move it beneath, or null for the top of the hierarchy.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<MailFolderActOutcome>

The moved 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.