Table of Contents

Method CountStoredEmailsAsync

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

CountStoredEmailsAsync(StoredMailScope, CancellationToken)

Counts the stored emails one scope holds.

Task<int> CountStoredEmailsAsync(StoredMailScope scope, CancellationToken cancellationToken)

Parameters

scope StoredMailScope

The account, and the one folder of it, whose mail is counted.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<int>

How many stored emails the scope holds.

Remarks

A row a tombstone hides is left out, which is the same rule every reader of stored mail applies: neither maintenance command spends work on mail nothing may retrieve, so counting one would overstate what the operator is agreeing to.