Table of Contents

Class EmailContentBody

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

Carries the body representations a reader receives, or the reason there are none.

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

Remarks

The plain text is the default representation and is always present, empty in each of the states where nothing could be read. The sanitized HTML is present only when the caller asked for it and the message actually has an HTML body part, so its absence answers whichever of those two questions the caller was in a position to ask.

Properties

Availability

Gets whether the body could be read, or why it could not.

EncryptedNotReadableLocally

Gets the body of a message whose own body arrived encrypted.

NotStoredExceededSizeLimit

Gets the body of a message whose raw MIME exceeded the size limit and was never stored.

PlainText

Gets the plain-text representation, which is empty whenever the body could not be read.

SanitizedHtml

Gets the sanitized HTML representation, or null when none was produced.

Methods

Readable(EmailBodyRepresentation, EmailBodyRepresentation?)

Reports a body that was read from the stored message.