Table of Contents

Constructor StoredMailFolder

Namespace
MailFathom.Application.Folders
Assembly
MailFathom.Application.dll

StoredMailFolder(MailFolderIdentity, RemoteFolderPath, int, int)

What local state holds about one folder: where the mail server keeps it, and how much of it is stored here.

public StoredMailFolder(MailFolderIdentity Folder, RemoteFolderPath RemotePath, int StoredEmailCount, int UnreadEmailCount)

Parameters

Folder MailFolderIdentity

The account and alias the entry belongs to.

RemotePath RemoteFolderPath

The remote folder the alias is currently bound to, which is where the folder's place in the mailbox hierarchy comes from.

StoredEmailCount int

How many of the folder's emails this deployment holds and would serve.

UnreadEmailCount int

How many of those the mail server last reported without \Seen.

Remarks

The path is the newest binding's, because an alias rebound after a server recreated the folder names the folder it names now. The counts are of every binding's mail together, because the older bindings' emails are still listed under the same alias and no reader counting a folder is asking which generation produced them.

Both counts are of the local copy rather than of the mailbox. A folder the deployment is still backfilling holds fewer than the server does, which is why nothing reading this may present it as the mailbox's own figure without the folder's freshness beside it.

The unread count is read from the flag snapshot reconciliation writes and is never written back towards the server: MailFathom reads mail read-only, and counting what is unread sets nothing.