Table of Contents

Constructor MailboxChangeProgress

Namespace
MailFathom.Application.Mail.Mutations.Authoring
Assembly
MailFathom.Application.dll

MailboxChangeProgress(MailboxMutationRecordId, StoredEmailId, MailboxMutation, MailboxMutationLifecycle, bool, int, MailFathomErrorCode?, DateTimeOffset, DateTimeOffset)

Where one change somebody authored has got to, as the caller that authored it asks.

public MailboxChangeProgress(MailboxMutationRecordId RecordId, StoredEmailId StoredEmailId, MailboxMutation Mutation, MailboxMutationLifecycle Lifecycle, bool IsOutcomeUnknown, int AttemptCount, MailFathomErrorCode? LastFailure, DateTimeOffset RecordedAt, DateTimeOffset StageChangedAt)

Parameters

RecordId MailboxMutationRecordId

The record this answers for, which is what the authoring call handed back.

StoredEmailId StoredEmailId

The email the change is about, so a caller holding several records can put each beside its message.

Mutation MailboxMutation

The change that was asked for, under the name every log line and counter uses for it.

Lifecycle MailboxMutationLifecycle

Whether the change is waiting, on its way, done, stuck, or withdrawn.

IsOutcomeUnknown bool

Whether the one command that may never be issued twice went out and its answer never came back.

AttemptCount int

How many times the change has been attempted, which is what says a retried change is making no progress.

LastFailure MailFathomErrorCode?

The code identifying what the last attempt ended in, or null while none has failed.

RecordedAt DateTimeOffset

When the change was written down.

StageChangedAt DateTimeOffset

When it last moved, which is what says how long a stuck change has been stuck.

Remarks

The unknown outcome is reported rather than folded into the lifecycle, because it is the one state a person has to act on rather than wait through. A relocation a server without MOVE carries is a copy followed by a delete, and a placement whose acknowledgement never arrived is the moment where the message may be in both folders or in neither — so it is reported as itself instead of appearing as an ordinary change still converging.

Nothing here is mail content. A record identity, a local email identity the caller already holds, a mutation name, a lifecycle name, a count, an error code, and two timestamps are all MailFathom's own words for its own work.