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 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.