Method ReadUnsettledFlaggedDeletesAsync
- Namespace
- MailFathom.Application.Mail.Mutations
- Assembly
- MailFathom.Application.dll
ReadUnsettledFlaggedDeletesAsync(MailAccountId, MailFolderResolutionId, ImapUidValidity, int, CancellationToken)
Reads the completed deletes of one folder binding that left their message flagged and have not been settled yet.
Task<IReadOnlyList<MailboxMutationRecord>> ReadUnsettledFlaggedDeletesAsync(MailAccountId account, MailFolderResolutionId folderResolutionId, ImapUidValidity uidValidity, int maxRecordCount, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account the folder belongs to.
folderResolutionIdMailFolderResolutionIdThe binding the occurrences belong to.
uidValidityImapUidValidityThe UIDVALIDITY the open session reports, which the occurrences must have been recorded under.
maxRecordCountintThe greatest number of records to return.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<MailboxMutationRecord>>
The records, oldest first, never more than
maxRecordCount.
Remarks
A delete whose occurrence has already been seen to leave its folder is not one of them: the backward pass settled it the way it settles a delete that expunged.