Table of Contents

Method DeriveChunksAsync

Namespace
MailFathom.Application.Emails.Chunking
Assembly
MailFathom.Application.dll

DeriveChunksAsync(IPersistenceSession, StoredEmailId, CancellationToken)

Cuts one message's passages from the text an earlier extraction stored, inside the caller's session.

Task DeriveChunksAsync(IPersistenceSession session, StoredEmailId storedEmailId, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The transaction the cut joins.

storedEmailId StoredEmailId

The message to cut.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes when the passages are staged.

Remarks

The text comes from the stored search document rather than from raw MIME, so the cut is a local write and lands on exactly the text every enabled scanner has already redacted.