Table of Contents

Method FollowAsync

Namespace
MailFathom.Application.Synchronization.Reconciliation
Assembly
MailFathom.Application.dll

FollowAsync(IMailboxSession, MailAccountId, MailFolderResolution, ImapUidValidity, CancellationToken)

Settles and follows one bounded batch of the folder's flag-only deletes.

public Task<FlaggedDeleteFollowUp> FollowAsync(IMailboxSession mailboxSession, MailAccountId account, MailFolderResolution folder, ImapUidValidity uidValidity, CancellationToken cancellationToken)

Parameters

mailboxSession IMailboxSession

The open read-only session of the folder.

account MailAccountId

The account the folder belongs to.

folder MailFolderResolution

The alias binding being synchronized.

uidValidity ImapUidValidity

The UIDVALIDITY the session reports, which every occurrence asked about was recorded under.

cancellationToken CancellationToken

Cancels the pass between the remote read and the local write.

Returns

Task<FlaggedDeleteFollowUp>

What the caller still owes: the erased messages to store again, and the changes it must not raise.

Exceptions

ArgumentNullException

Thrown when mailboxSession or folder is null.

MailboxUnavailableException

Thrown when the mail server did not serve the read within its configured resilience budget.

PersistenceConcurrencyConflictException

Thrown when a competing writer wins a race the bounded retries could not resolve.