Table of Contents

Method SettleAppendAsync

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

SettleAppendAsync(IPersistenceSession, MailAccountId, MailboxRestoreAppendId, bool, DateTimeOffset, CancellationToken)

Records an operator's verdict on one unanswered append.

Task<bool> SettleAppendAsync(IPersistenceSession session, MailAccountId account, MailboxRestoreAppendId record, bool sourceHoldsTheCopy, DateTimeOffset settledAt, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The transaction the verdict commits in.

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.

settledAt DateTimeOffset

When the verdict was given.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<bool>

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

Remarks

A copy the operator found keeps its record, stamped rather than deleted: the message has no occurrence to write, and the record is the only thing that stops the next pass putting a second copy beside the first. A copy that is not there deletes the record, and the next pass appends the message as it would any other.