Class MailDocumentBounds
- Namespace
- MailFathom.Application.EmailContent.Rendering.Document
- Assembly
- MailFathom.Application.dll
What one reduction of one body may produce at most.
public sealed record MailDocumentBounds : IEquatable<MailDocumentBounds>
- Inheritance
-
MailDocumentBounds
- Implements
- Inherited Members
Remarks
Every bound here is a bound on hostile input. A message is written by a stranger, so the shape of the document it reduces to is the sender's decision and the cost of drawing it is the reader's — which is what makes each of these a safety limit rather than a tuning knob. A body that reaches one is reduced as far as the bound and reports itself as truncated rather than being refused, because half a newsletter is worth more to a reader than none of it.
They are values rather than configuration for the same reason the block catalogue is closed: a deployment that could raise the nesting depth could be persuaded to raise it, and nothing an operator gains from that is worth the reading pane recursing on a message somebody sent them.
Properties
- Default
Gets the bounds every reduction runs under.
- MaximumBlocks
Gets how many blocks one document may hold, counting the ones inside other blocks.
- MaximumCharactersPerRun
Gets how many characters one run may hold.
- MaximumDepth
Gets how deeply blocks may nest before the reduction stops descending.
- MaximumInlineImageOctets
Gets how many octets one inlined picture may hold before it is left undrawn.
- MaximumInlineImageOctetsPerDocument
Gets how many octets of its own pictures one document may carry in total.
- MaximumInlineImages
Gets how many pictures of its own one message may have inlined.
- MaximumRunsPerBlock
Gets how many runs one paragraph or heading may hold.
- MaximumTableCells
Gets how many cells one row may hold.
- MaximumTableRows
Gets how many rows one table may hold.