Table of Contents

Constructor OutgoingMailText

Namespace
MailFathom.Application.Mail.Delivery.Screening
Assembly
MailFathom.Application.dll

OutgoingMailText(string, string, string?)

Everything an outgoing message says in words, read back out of the bytes that will be transmitted.

public OutgoingMailText(string Subject, string PlainTextBody, string? HtmlBody)

Parameters

Subject string

The subject line, which is empty text where the message carries none.

PlainTextBody string

The plain-text body, which is empty text where the message carries none.

HtmlBody string

The HTML body, or null where the message carries none.

Remarks

Three values rather than the message. A scanner reports the region it matched, and a region found in a composed document can cover a boundary as readily as the text beside it — so what is screened is each field on its own, exactly as every consumer of the redacting guard screens the field it owns rather than the envelope it will build. That the screen only ever answers yes or no makes this a matter of accuracy rather than of safety here, and it is worth as much: a match straddling a MIME boundary is a match against something nobody wrote.

The attachments are the one part of the count a message decides. Everything the author typed is at most three scans; each readable attachment adds one more, so what bounds the work is what bounds the extraction behind it — the per-attachment ceilings AttachmentTextExtractionOptions declares, and the same numbers applied across the message by whatever reads it back. A message that carries no attachment costs exactly what it cost before.

No header is among the three, and they are not all covered by the same thing. A message identity is composed by this deployment out of values it chose, so there is nothing in one a caller could have put there. An address is judged beside this screen by OutgoingRecipientPolicy, which is what decides whether the message may go to that person at all. A display name is neither: the policy reads the address alone, and the composer writes the name into the header having checked it only for an embedded line break. Nothing published today lets a caller state one — every recipient is an address, or a contact whose name this deployment holds — so this is a gap in what is guaranteed rather than a value going out unexamined. An entrypoint that does let a caller name a recipient in their own words is what would make it one, and screening the header is what it would owe.

An attachment is read as far as something here can read it, and a file that could not be read stops the act. A credential typed into a covering note and the same credential inside the attached document leave under the same address, so screening one and not the other made the protection a property of which half of the message the author put it in. What is not undertaken is anything that is not a document: a photograph, a recording, and an archive carry no text a scanner reads, so they are neither read nor counted, and the page beside this says so rather than implying coverage.