Table of Contents

Method WithRedactedText

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

WithRedactedText(string, string)

Reports the same reading of the same body with both texts replaced by their redacted forms.

public ExtractedEmailText WithRedactedText(string originalText, string trimmedText)

Parameters

originalText string

The untrimmed reading after redaction.

trimmedText string

The trimmed reading after redaction.

Returns

ExtractedEmailText

The redacted text, keeping the source the body was read from.

Remarks

The source is carried rather than re-decided, because redaction changes what the words are and never where they came from: a lossy reading of an HTML body stays a lossy reading of an HTML body once a credential inside it has been replaced, and chunking weighs that marker.

Exceptions

ArgumentNullException

Thrown when either argument is null.

InvalidOperationException

Thrown when this text carries no words to replace.