Table of Contents

Class MailboxSynchronizationResult

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

Summarizes one mailbox synchronization run.

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

Remarks

The binding is reported because resolution happens inside the run and a caller that wants to keep watching the folder afterwards must watch the remote folder the alias actually resolved to. Re-resolving it outside the run would cost a second listing and could answer differently, which is how an alias ends up watched in one place and synchronized in another.

Constructors

MailboxSynchronizationResult(MailboxSynchronizationOutcome, MailFolderResolution?, int, int, int, int, int, bool, SynchronizationCheckpoint?, MailboxReconciliationResult, IReadOnlyList<SuppressedMailboxChange>, MailboxContentVolume)

Summarizes one mailbox synchronization run.

Properties

ArrivedEmailCount

How many of the stored occurrences were mail arriving for the person: stored in the inbox, unread on the server when the run stored them, and placed there by neither of MailFathom's own two acts — filing a copy of the user's outgoing message, and a rule copying a message into a folder mapped as the inbox. It is a subset of StoredEmailCount and is what a run reports as arrived mail, so no consumer has to rebuild the rule from a count that means something wider.

Checkpoint

The progress the run ended on, which is present exactly when Outcome is Synchronized.

ContentVolume

How many bytes of mail content the run moved, and which of its byte limits it reached.

Folder

The binding the run worked under, which is present exactly when Outcome is Synchronized.

HasMoreEmails

Whether the folder still held unprocessed emails when the run's batch budget ran out.

Outcome

Whether the run reached a folder.

Reconciliation

What the run's backward pass found among the emails already stored for this folder.

RelocatedEmailCount

How many discovered occurrences were an email MailFathom had relocated into this folder, and so carried the existing local email across instead of storing a second one. They are counted apart from the stored ones because no mail arrived: the mailbox holds exactly what it held before the run.

RelocatedEmails

Gets the local emails this run carried into the folder because MailFathom had relocated them there.

SkippedOversizedEmailCount

How many occurrences were stored as metadata only.

StoredEmailCount

How many occurrences were stored with their content.

SuppressedChanges

Every change this run discovered and did not raise, because a durable mutation record said MailFathom had made it — both passes together, since one relocation arrives as an appearance in the forward pass and a disappearance in the backward one. Without it a rule that files mail would match the mail it had just filed, indefinitely.

UnreadableMimeEmailCount

How many stored occurrences carried MIME that enrichment could not read.

Methods

FolderNotResolved(MailFolderResolutionOutcome)

Reports a configured alias that named no single advertised folder.

Synchronized(MailFolderResolution, int, int, int, int, int, bool, SynchronizationCheckpoint, MailboxReconciliationResult, IReadOnlyList<SuppressedMailboxChange>, MailboxContentVolume)

Reports a run that reached its folder.