Method FollowAsync
- 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
mailboxSessionIMailboxSessionThe open read-only session of the folder.
accountMailAccountIdThe account the folder belongs to.
folderMailFolderResolutionThe alias binding being synchronized.
uidValidityImapUidValidityThe UIDVALIDITY the session reports, which every occurrence asked about was recorded under.
cancellationTokenCancellationTokenCancels 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
mailboxSessionorfolderis 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.