Table of Contents

Class MailboxChangeProgress

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

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

public sealed record MailboxChangeProgress : IEquatable<MailboxChangeProgress>
Inheritance
MailboxChangeProgress
Implements
Inherited Members

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.

Constructors

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.

Properties

AttemptCount

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

IsOutcomeUnknown

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

LastFailure

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

Lifecycle

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

Mutation

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

RecordId

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

RecordedAt

When the change was written down.

StageChangedAt

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

StoredEmailId

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

Methods

Of(MailboxMutationRecord)

Describes where one durable record stands.