Table of Contents

Constructor MailFolderFreshness

Namespace
MailFathom.Application.Accounts
Assembly
MailFathom.Application.dll

MailFolderFreshness(MailFolderAlias, MailSynchronizationState, DateTimeOffset?, bool)

How current one folder's local copy is, in the three facts a screen drawing it beside its mail needs.

public MailFolderFreshness(MailFolderAlias Alias, MailSynchronizationState State, DateTimeOffset? SynchronizedAt, bool IsBehind)

Parameters

Alias MailFolderAlias

MailFathom's own name for the folder.

State MailSynchronizationState

Whether the deployment's last attempt at the folder succeeded, failed, found no server, or has never happened.

SynchronizedAt DateTimeOffset?

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

IsBehind bool

Whether the folder's last attempt ended with mail it had not yet taken in.

Remarks

It is MailboxFolderFreshness — the durable half, which is one instant — reduced together with what this process's synchronization run ledger observed. Neither source answers on its own: the instant says how old the copy is and nothing about whether anything is still refreshing it, and the ledger says how the last attempt went and nothing about how much of the folder had already been stored before it.

Being behind is deliberately not a state. A folder can be behind under any of them — a run that succeeded within its batch budget leaves mail for the next one, and a failing folder is usually behind as well — so folding it in would make one field answer two questions and lose whichever the reader was not asking.