Method ApplyExtractionAsync
- Namespace
- MailFathom.Application.Emails.Extraction
- Assembly
- MailFathom.Application.dll
ApplyExtractionAsync(IPersistenceSession, StoredEmailId, ExtractedEmailMetadata, CancellationToken)
Writes what re-reading one email's MIME produced onto its existing row and search document.
Task ApplyExtractionAsync(IPersistenceSession session, StoredEmailId storedEmailId, ExtractedEmailMetadata metadata, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe explicit persistence session this write participates in.
storedEmailIdStoredEmailIdThe email being re-read.
metadataExtractedEmailMetadataWhat the MIME reader extracted.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task
A task that completes when the write has been staged.
Remarks
This persists the classification markers specification 06 introduced before it persists any text derived from them. A row stored before that specification carries no markers at all, so reading one instead of writing it would leave every pre-existing encrypted message indistinguishable from an empty one.