Table of Contents

Constructor CleanableMailBody

Namespace
MailFathom.Application.EmailContent.Cleaning
Assembly
MailFathom.Application.dll

CleanableMailBody(string?, string?, IReadOnlyList<CleanableMailBlock>)

One message's reduced body as the outline a cleaning is decided from, rather than as the body itself.

public CleanableMailBody(string? Subject, string? SenderName, IReadOnlyList<CleanableMailBlock> Blocks)

Parameters

Subject string

The subject the message carried, or null where it carried none.

SenderName string

The envelope sender, as the address or the name it was written under, or null where the message named nobody.

Blocks IReadOnlyList<CleanableMailBlock>

One entry per top-level block of the reduced document, in reading order and numbered by it.

Remarks

This is the whole of what may reach a provider, and it is an outline rather than a body. A block contributes its kind, how many links it holds, and the opening of its text — so a decision can be made about a block without the block's own content being the thing sent. What comes back is a set of index ranges, which is why fidelity is a property of the answer's type here rather than of how firmly an instruction asked for it.

The envelope is in it deliberately and is not decoration. The rule that drops a From/Sent/To block pasted into a body by a forwarding system turns on whether that block repeats the envelope, so a cleaning asked without the envelope drops the forwarded message's only record of who wrote what is being read.

All of it is somebody's mail. None of it reaches a log line, a span attribute, or a telemetry event, and what leaves the deployment leaves through the egress guard like every other text this system sends.