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
sessionIPersistenceSessionThe session whose transaction this write joins.
storedEmailIdStoredEmailIdThe message whose passages are missing.
cancellationTokenCancellationTokenPropagates 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.