Table of Contents

Class MailboxFolderFreshness

Namespace
MailFathom.Application.Synchronization.Checkpoints
Assembly
MailFathom.Application.dll

Reports how current the local copy of one folder is.

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

Remarks

Every query result carries this, because a mailbox read is served from local state whether or not a mail server is reachable. Without it a caller cannot tell a folder that holds no matching mail from one whose synchronization has been failing for a week, and both look like an answer about the mailbox.

An alias can have been bound to several remote folders over time, and the timestamp is the most recent progress of any of those bindings. That is what "how current is this alias" means to a reader: the older bindings' emails are still listed under the same alias, and no reader is asking which generation produced them.

Constructors

MailboxFolderFreshness(MailAccountId, MailFolderAlias, DateTimeOffset?)

Reports how current the local copy of one folder is.

Properties

AccountId

The account the folder belongs to.

FolderAlias

MailFathom's own name for the folder.

SynchronizedAt

When synchronization last durably committed progress for the folder, or null when it never has.

WasSynchronized

Gets whether synchronization has ever committed progress for the folder.