Table of Contents

Method CountEmailsWithStaleDerivedDataAsync

Namespace
MailFathom.Application.Emails.Extraction
Assembly
MailFathom.Application.dll

CountEmailsWithStaleDerivedDataAsync(SensitiveContentDerivationStamp, CancellationToken)

Counts the stored emails whose derived text was written under a different sensitive-content configuration.

Task<int> CountEmailsWithStaleDerivedDataAsync(SensitiveContentDerivationStamp current, CancellationToken cancellationToken)

Parameters

current SensitiveContentDerivationStamp

The configuration a derived row written now would carry.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<int>

How many stored emails a rebuild towards current would re-derive.

Remarks

Answered by the walk's own store rather than by a reader of its own, so the number an operator is shown and the work a rebuild would actually perform come from one predicate. A count taken separately would drift the first time either learned something about tombstones or about missing content.

It counts whether or not the rebuild is switched on, because that is the question it exists to answer: an operator who has just enabled a scanner needs to know how much of their mailbox the switch does not reach before they decide whether to spend the re-derivation.