Class StoredEmailExtractionBackfill
- Namespace
- MailFathom.Application.Emails.Extraction
- Assembly
- MailFathom.Application.dll
Re-derives normalized metadata and searchable text from the raw MIME of emails stored before extraction existed.
public sealed class StoredEmailExtractionBackfill
- Inheritance
-
StoredEmailExtractionBackfill
- Inherited Members
Remarks
The work is bounded, idempotent, and restartable. A run processes at most a configured number of batches and then reports whether more remain; a batch commits its extractions together with the position it reached, so an interrupted run resumes at the next email rather than repeating or skipping one; and re-running over an email that already has its extraction simply overwrites it with the same reading of the same immutable bytes.
Nothing here reaches a mail server. Every byte it reads was fetched and stored by an earlier synchronization run, so
a backfill cannot touch a remote \Seen flag however long it runs.
Constructors
- StoredEmailExtractionBackfill(IStoredEmailExtractionBackfillStore, IEmailContentStore, IEmailMimeReader, OptimisticConcurrencyRetryPolicy, StoredEmailExtractionBackfillOptions)
Initializes a new extraction backfill.
Methods
- RunAsync(CancellationToken)
Runs one bounded pass of the backfill.