Table of Contents

Interface IStoredMailCounter

Namespace
MailFathom.Application.Mail.Maintenance
Assembly
MailFathom.Application.dll

Counts the mail a deployment holds for one maintenance scope.

public interface IStoredMailCounter

Remarks

It exists so that an operation whose cost is proportional to the mailbox can state that cost before it is agreed to, which is the same contract mfctl embedding activate already holds an operator to. The figure is a count of messages and nothing else: what a maintenance command is about to spend is proportional to how many messages it will re-read, and a byte total would describe local storage rather than the work.

Methods

CountStoredEmailsAsync(StoredMailScope, CancellationToken)

Counts the stored emails one scope holds.