Constructor MailSynchronizationStatus
- Assembly
- MailFathom.Application.dll
MailSynchronizationStatus(ReplicaIdentity, bool, IReadOnlyList<MailAccountSynchronizationStatus>)
What this deployment's mail synchronization is currently doing, account by account and folder by folder.
public MailSynchronizationStatus(ReplicaIdentity Replica, bool SynchronizationEnabled, IReadOnlyList<MailAccountSynchronizationStatus> Accounts)
Parameters
ReplicaReplicaIdentityThe replica that composed this answer. It is here so the parts only one process can answer for — the phase, the backoff, and the last run of an account this replica supervises — are attributable to a process an operator can read a log for, rather than reading as the deployment's.
SynchronizationEnabledboolWhether this deployment refreshes its local copy at all, which is the answer that makes every count below still.
AccountsIReadOnlyList<MailAccountSynchronizationStatus>One entry per configured account, ordered ordinally by identifier.
Remarks
One value rather than a metrics stack, because the question it answers — is my mail being kept up to date — has answers that look nothing alike from outside: synchronization switched off, an account backing off a server that is refusing it, a folder whose alias names nothing, a folder still backfilling, and a folder that has been repeating one batch since yesterday. Every one of them reaches an operator as mail that does not arrive, which reads as an empty mailbox rather than as a stalled worker.
It answers about the deployment rather than about the replica the request reached. Which replica supervises an account is read from the lease table every replica shares, so an operator asking twice is told the same thing twice; what only the answering process knows is reported beside Replica and never as the deployment's.
Nothing here is mail. Configured account identifiers and folder aliases, a phase, counts, UIDs, instants, and a replica identity are the whole of it — no subject, no address, no remote folder path, and no exception detail.