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
sessionIPersistenceSessionThe transaction the cut joins.
storedEmailIdStoredEmailIdThe message to cut.
cancellationTokenCancellationTokenCancels 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.