Table of Contents

Enum MailboxMutationLocalChange

Namespace
MailFathom.Domain.Mutations
Assembly
MailFathom.Domain.dll

States what one recorded mutation has to do with MailFathom's own copy of the message.

public enum MailboxMutationLocalChange

Fields

AlreadyCommitted = 2

The change is already committed on the stored message, and the record exists to carry it to the source.

What a restoring account opens beside its local commit, in the same transaction. Nothing withdraws such a record: withdrawal is a statement about a change that has not happened, and cancelling this one would leave the stored message changed with nothing left to tell the source about it.

Erasure = 1

The record erases MailFathom's own copy once its window has passed, and reaches no mail server at all.

The second delete of a message already in the local trash, on an account holding or restoring its mailbox. It is the one act that is local in every phase, and the local copy is still there while the record waits, which is what leaves the person their window.

None = 0

Nothing happens locally, now or later: the record names a change a mail server is to be told about.

Every record a mirrored account opens is this, and so is the one a restoring account opens for a message the drain has not yet reached.

Remarks

A record says what a mail server is to be told. On an account whose mailbox MailFathom holds, and on one being restored to its source, the same change also reaches the stored message — and when it does is the whole of what this states: not at all, later, or already. The three are exclusive, which is why they are one value rather than a flag each: a record is opened as exactly one of them and no act produces two.

It is written once with the row and never rewritten, because it says what the record was opened as rather than what the account is now. A record outlives the phase it was opened under — an account held again after a restore holds records of all three kinds — so a pass reading the phase instead would act on the wrong one.

The value is stored as its name, for the reason MailboxMutationStage is: it stays readable in an ad-hoc audit query and survives any later reordering of this enum.