Table of Contents

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

session IPersistenceSession

The explicit persistence session this write participates in.

storedEmailId StoredEmailId

The email being re-read.

metadata ExtractedEmailMetadata

What the MIME reader extracted.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task

A task that completes when the write has been staged.

Remarks

This persists the classification markers MIME extraction produces before it persists any text derived from them. A row stored before extraction existed carries no markers at all, so reading one instead of writing it would leave every pre-existing encrypted message indistinguishable from an empty one.

A rebuilding walk also discards whatever this message's attachments yielded under an older posture and takes the message's reading marker off, which is the whole of what puts it back in front of the account run's attachment stage. The words are taken again there rather than here, so the re-reading is charged to that run's own octet budget and asks a vision provider only where the deployment still has one configured.