Constructor ReconciledFolderOutcome
- Assembly
- MailFathom.Application.dll
ReconciledFolderOutcome(IReadOnlyList<ObservedEmailFlags>, IReadOnlyList<StoredEmailId>, IReadOnlyList<StoredEmailId>, IReadOnlyList<MutationAttributedDisappearance>, RemotelyDeletedEmailDisposition, bool, DateTimeOffset)
Everything one reconciliation window learned, as one thing to apply.
public ReconciledFolderOutcome(IReadOnlyList<ObservedEmailFlags> StillPresent, IReadOnlyList<StoredEmailId> ConfirmedUnchanged, IReadOnlyList<StoredEmailId> Disappeared, IReadOnlyList<MutationAttributedDisappearance> RemovedByOwnMutation, RemotelyDeletedEmailDisposition Disposition, bool AppliesRemoteDeletions, DateTimeOffset ObservedAt)
Parameters
StillPresentIReadOnlyList<ObservedEmailFlags>The emails the folder still holds, with the flags to write onto them.
ConfirmedUnchangedIReadOnlyList<StoredEmailId>The emails the folder still holds and reported no change to, so the stored flags already describe them and only the record of when they were last asked about moves.
DisappearedIReadOnlyList<StoredEmailId>The emails the folder no longer holds and nothing MailFathom did accounts for.
RemovedByOwnMutationIReadOnlyList<MutationAttributedDisappearance>The emails the folder no longer holds because MailFathom itself relocated or deleted them, each named with the record that says so. They are separated from
DisappearedbeforeDispositionis reached, because that setting answers what becomes of mail somebody else deleted and these are not that. A relocation into a mirrored folder moves the queue timestamp and nothing else, leaving the row for the placement to carry across; a delete, and a relocation into a folder MailFathom does not mirror, additionally apply the disposition their own record carries, which is the one the user authored the change under.DispositionRemotelyDeletedEmailDispositionWhat becomes of the local copy of each email in
Disappeared. It never reachesRemovedByOwnMutation, which is the whole point of the split: an account configured to erase what its server loses must not thereby erase what MailFathom itself was told to delete.AppliesRemoteDeletionsboolWhether the source is still the truth about what exists on this account. false on an account whose mailbox MailFathom holds, where the disposition above is not reached at all.
ObservedAtDateTimeOffsetWhen this window was read, which orders it against what other writers have recorded.
Remarks
AppliesRemoteDeletions is what an account whose mailbox MailFathom holds answers
false to, and it outranks Disposition rather than choosing among its values.
On such an account the source is not the truth about what exists: a message gone from it is a message the drain has
taken off it, so the local row keeps its whole life and only its occurrence is cleared. Reaching the disposition
there would let a setting written about a mirror erase the only copy of somebody's mail.
The window travels as one value rather than as a call per email so that applying it is one bounded set of database work instead of a query per row inside an open write transaction. It is also what makes the window atomic: a run either records what it found or records none of it.
ObservedAt is the ordering key an implementation compares against what is already stored, so a
window replayed after a commit conflict cannot overwrite an observation that is newer than itself. Every snapshot in
StillPresent carries its own reading of the same moment, taken where the server answered.
ConfirmedUnchanged is applied like the rest and is not an optimization an implementation may
skip. The observation timestamp is what moves an email to the back of the reconciliation queue, so an email the
server confirmed and this window left untouched would be selected again on every run and the window would never
reach anything else.