Table of Contents

Struct MailFolderResolutionGeneration

Namespace
MailFathom.Domain.Folders
Assembly
MailFathom.Domain.dll

Counts how many times an alias has been bound to a remote folder.

public readonly record struct MailFolderResolutionGeneration : IEquatable<MailFolderResolutionGeneration>
Implements
Inherited Members

Remarks

The generation is what keeps a repointed alias safe. UIDVALIDITY is unique inside one mailbox and says nothing across mailboxes, so two unrelated remote folders can advertise the same value. An alias that moved between them while keeping one persistence identity would let the previous folder's checkpoint apply to the new one and skip every message below its last-seen UID, silently and permanently. Each binding therefore synchronizes under its own generation, with its own checkpoint and its own stored occurrences.

Properties

First

Gets the generation the first binding of an alias runs under.

Value

Gets the generation number.

Methods

Create(int)

Creates a generation from a persisted value.

Next()

Starts the generation that a new remote binding of the same alias synchronizes under.

ToString()

Returns the fully qualified type name of this instance.