Table of Contents

Method RetireAsync

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

RetireAsync(MailAccountId, MailFolderAlias, DeleteLeftFlagged, StoredEmailId?, CancellationToken)

Stops following an occurrence whose erased message the run has stored again, or found it could not.

public Task RetireAsync(MailAccountId account, MailFolderAlias folder, DeleteLeftFlagged undeleted, StoredEmailId? restoredAs, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account the occurrence belongs to.

folder MailFolderAlias

The folder the occurrence is in.

undeleted DeleteLeftFlagged

One of the occurrences a follow-up returned as awaiting restore.

restoredAs StoredEmailId?

The local email the message was stored again as, or null when it was not.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes when the record is gone.

Remarks

A message stored again is announced as changed in its folder, as a kept row brought back is, because an open client has to learn that a message it was told had gone is back.

Exceptions

ArgumentNullException

Thrown when undeleted is null.