Table of Contents

Method SettleAsync

Namespace
MailFathom.Application.Synchronization.Restore
Assembly
MailFathom.Application.dll

SettleAsync(MailAccountId, MailboxRestoreAppendId, bool, CancellationToken)

Records what an operator found in the folder the unanswered append was issued against.

public Task<bool> SettleAsync(MailAccountId account, MailboxRestoreAppendId record, bool sourceHoldsTheCopy, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account the record belongs to.

record MailboxRestoreAppendId

The record being settled.

sourceHoldsTheCopy bool

Whether the operator found the copy in the folder.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<bool>

true when the record was still standing and the verdict was written.

Remarks

Under the custody permission rather than the configuration writer's, for the reason the switch itself is: a verdict of false puts a message back onto somebody's mail server, and one of true leaves a message MailFathom holds with no occurrence it will ever write. Both are acts on the mailbox rather than readings of it.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller's grant omits mailfathom.admin.custody.write.