Table of Contents

Class ExtractedEmailText

Namespace
MailFathom.Application.Emails.Extraction
Assembly
MailFathom.Application.dll

Carries the searchable text derived from one message's body, or the reason there is none.

public sealed record ExtractedEmailText : IEquatable<ExtractedEmailText>
Inheritance
ExtractedEmailText
Implements
Inherited Members

Remarks

Both texts are present together or absent together: a source that yielded words supplies each of them, and the two absent sources supply neither. The pair is not an optional refinement of one value — OriginalText is what the body said and TrimmedText is what is worth indexing, and the first is retained because trimming removes quoted history and signatures by heuristic and an over-aggressive cut must never be the only surviving reading of a message.

Extracted text is mail content and personal data by default. Nothing here may be written to a log or included in an error message; only Source and the character counts are safe to report.

Properties

EncryptedBody

Gets the text of a message whose body arrived encrypted and is therefore unreadable here.

HasText

Gets whether any text was extracted at all.

IsDerivedFromHtml

Gets whether the text was inferred from markup rather than read from a plain-text part.

NoTextualBody

Gets the text of a message whose body carried no words.

OriginalText

Gets the extracted body text before quoted history and signatures were removed, or null when the message yielded none.

Source

Gets where the text came from, or why none exists.

TrimmedText

Gets the body text that remained after trimming, which is the form the lexical index covers.

Methods

DerivedFromHtmlBody(string, string)

Reports text derived from an HTML body, which is a lossy reading of what the message displayed.

FromPlainTextBody(string, string)

Reports text a text/plain body part carried.