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
sessionIPersistenceSessionThe transaction the verdict commits in.
accountMailAccountIdThe account the record belongs to.
recordMailboxRestoreAppendIdThe record being settled.
sourceHoldsTheCopyboolWhether the operator found the copy in the folder.
settledAtDateTimeOffsetWhen the verdict was given.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
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.