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.
- Document
Gets the body reduced to the document tree a reading pane draws, or null when none was produced.
- EncryptedNotReadableLocally
Gets the body of a message whose own body arrived encrypted.
- Forms
Gets which forms of its own body the message carried, whatever the caller asked to be produced from them.
- NotStoredAwaitingStorageHeadroom
Gets the body of a message whose content storage had no room for it yet.
- 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.
- SelfContainedHtml
Gets the message's own markup with everything that runs or reports removed, or null when none was produced.
Methods
- Readable(EmailBodyRepresentation, EmailBodyRepresentation?, MailDocument?, EmailBodyRepresentation?, EmailBodyForms)
Reports a body that was read from the stored message.