Class CleanedMailBody
- Namespace
- MailFathom.Application.EmailContent.Cleaning
- Assembly
- MailFathom.Application.dll
One message's body as the third rendering, or the ordinary reduced one and why it is what arrived.
public sealed record CleanedMailBody : IEquatable<CleanedMailBody>
- Inheritance
-
CleanedMailBody
- Implements
- Inherited Members
Remarks
The fallback travels with the reason rather than instead of it. A reader whose cleaning did not happen is shown the reduced body and told so, because a view that silently became a different view reads as a setting that stopped working — and a pane with nothing in it is the one outcome this type exists to rule out.
The cleaned document is the reduced one with blocks absent and nothing else changed. Every block it keeps is the block the reduced view would have drawn, and the counts it carries are still the whole body's: what the message asked to fetch from somebody else's server does not become untrue because a footer was dropped.
Constructors
- CleanedMailBody(MailBodyCleaningOutcome, MailDocument?)
One message's body as the third rendering, or the ordinary reduced one and why it is what arrived.
Properties
- Document
The document to draw: the cleaned one where the outcome is Cleaned, the ordinary reduced one in every other case, and null only where the body carried no document at all — which is the same answer the body route gives for that message.
- Outcome
What came of the cleaning, which is what a reader is told where it did not happen.