Method DeriveChunks
- Namespace
- MailFathom.Application.Emails.Chunking
- Assembly
- MailFathom.Application.dll
DeriveChunks(ExtractedEmailText, EmailChunkingRules)
Cuts extracted text into chunks, in reading order.
IReadOnlyList<EmailTextChunk> DeriveChunks(ExtractedEmailText text, EmailChunkingRules rules)
Parameters
textExtractedEmailTextThe text extraction derived from one message's body.
rulesEmailChunkingRulesThe boundaries to cut along.
Returns
- IReadOnlyList<EmailTextChunk>
The chunks in reading order, or an empty list when the message yielded no text to cut.
Remarks
The same text and the same rules produce the same chunks and the same hashes on every call, on any machine, and in any order, which is what lets a caller decide by hash alone whether anything downstream has to be re-done.
Exceptions
- ArgumentNullException
Thrown when
textorrulesis null.