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
plainTextEmailBodyRepresentationThe plain-text representation, bounded and carrying its truncation metadata.
sanitizedHtmlEmailBodyRepresentationThe sanitized HTML representation, or null when none was produced.
documentMailDocumentThe reduced document tree, or null when none was produced.
selfContainedHtmlEmailBodyRepresentationThe self-contained markup, or null when none was produced.
formsEmailBodyFormsWhich 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
plainTextorformsis null.