Table of Contents

Interface IStoredMailFolderReader

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

Reads where each folder in a mailbox scope sits on its mail server, and how much of it is stored locally.

public interface IStoredMailFolderReader

Remarks

It exists beside ISynchronizationFreshnessReader rather than replacing it, because the two answer different questions and cost different amounts. Freshness is attached to every mailbox query and is one instant per alias; this one counts mail, which is work proportional to the folder rather than to the folder list, so it is asked for by the one read that draws a folder tree and by nothing that lists messages.

Implementations join no transaction, mutate nothing, and reach no mail server. The counts are of what is stored locally at the moment of the read, which is what a caller may present beside the folder's own freshness and never as the mail server's own figure.

Methods

ReadAsync(MailboxScope, CancellationToken)

Reads one entry per folder of the scope that local state holds a binding for.