Table of Contents

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

account MailAccountId

The account the folder belongs to.

folderResolutionId MailFolderResolutionId

The binding the occurrences belong to.

uidValidity ImapUidValidity

The UIDVALIDITY the open session reports, which the occurrences must have been recorded under.

maxRecordCount int

The greatest number of records to return.

cancellationToken CancellationToken

Cancels 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.