Table of Contents

Method Readable

Namespace
MailFathom.Application.EmailContent.Rendering
Assembly
MailFathom.Application.dll

Readable(EmailBodyRepresentation, EmailBodyRepresentation?, MailDocument?, EmailBodyRepresentation?, EmailBodyForms)

Reports a body that was read from the stored message.

public static EmailContentBody Readable(EmailBodyRepresentation plainText, EmailBodyRepresentation? sanitizedHtml, MailDocument? document, EmailBodyRepresentation? selfContainedHtml, EmailBodyForms forms)

Parameters

plainText EmailBodyRepresentation

The plain-text representation, bounded and carrying its truncation metadata.

sanitizedHtml EmailBodyRepresentation

The sanitized HTML representation, or null when none was produced.

document MailDocument

The reduced document tree, or null when none was produced.

selfContainedHtml EmailBodyRepresentation

The self-contained markup, or null when none was produced.

forms EmailBodyForms

Which forms of its own body the message carried.

Returns

EmailContentBody

The readable body.

Remarks

The forms are stated by every caller rather than defaulted, because the one honest default is None and a body that was read carried something: a caller that forgot would publish a message as carrying neither form, which reads as a finding about the message instead of as an omission.

Exceptions

ArgumentNullException

Thrown when plainText or forms is null.