Table of Contents

Method DeriveChunksAsync

Namespace
MailFathom.Application.Emails.Embeddings.Backfill
Assembly
MailFathom.Application.dll

DeriveChunksAsync(IPersistenceSession, StoredEmailId, CancellationToken)

Cuts one message's already-extracted text into passages, inside the caller's open session.

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

Parameters

session IPersistenceSession

The session whose transaction this write joins.

storedEmailId StoredEmailId

The message whose passages are missing.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task

A task that completes when the passages have been staged.

Remarks

The text is the one an earlier extraction already stored, so nothing here re-reads raw MIME, reaches a mail server, or asks a provider for anything. Cutting it applies the same rules synchronization applies, which is what keeps a message this walk reaches from being cut differently than the message beside it.