Constructor StoredEmailExtractionBackfillResult
- Namespace
- MailFathom.Application.Emails.Extraction
- Assembly
- MailFathom.Application.dll
StoredEmailExtractionBackfillResult(int, int, int, int, bool)
Summarizes one bounded run of the extraction backfill.
public StoredEmailExtractionBackfillResult(int ExtractedEmailCount, int UnreadableEmailCount, int MissingContentEmailCount, int OutstandingEmailCount, bool EmailsRemain)
Parameters
ExtractedEmailCountintHow many stored emails were re-read and had their metadata and text written.
UnreadableEmailCountintHow many stored emails carried MIME no reader could parse, which the run stepped over.
MissingContentEmailCountintHow many stored emails no longer had raw MIME to re-read.
OutstandingEmailCountintHow many stored emails still awaited extraction when this run ended.
EmailsRemainboolWhether emails still await extraction after this run's batch budget was spent.
Remarks
Every field is a count. Nothing derived from a message — no subject, address, or fragment of body text — belongs in a result a worker logs.
The backlog and the remaining flag answer different questions and neither replaces the other: the flag is whether the worker has more to do, which is what decides its next interval, and the backlog is how much, which is what answers whether the walk is converging. The two disagree at the end of a backfill and are both right: a message no reader can parse, and one whose raw MIME is no longer there, never gain an extraction, so they stay in the backlog while the flag says there is nothing left to attempt.