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
scopeStoredMailScopeThe account, and the one folder of it, whose mail is counted.
cancellationTokenCancellationTokenCancels the read.
Returns
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.