Method ContentRefused
- Namespace
- MailFathom.Application.Mail.Delivery.Governance
- Assembly
- MailFathom.Application.dll
ContentRefused(SensitiveContentEgressRefusal)
Reports a message this deployment will not transmit, because of what the message carries.
public static OutgoingMailRefusedException ContentRefused(SensitiveContentEgressRefusal refusal)
Parameters
refusalSensitiveContentEgressRefusalWhat the screen stopped it with.
Returns
- OutgoingMailRefusedException
The failure to raise.
Remarks
It names the category of material and nothing else about the finding, which is the same rule the refusals above keep about a recipient: a category is one of this deployment's own configured names, while a rule name and a position would say where in the message the credential is, on a line that reaches a log.
The message is refused whole rather than transmitted with the material removed. Replacing part of a body would send words the author never wrote under their own address, and nobody on either end of the message would be able to tell that anything had been changed.
Exceptions
- ArgumentNullException
Thrown when
refusalis null.- ArgumentOutOfRangeException
Thrown when the refusal names a reason this system does not declare.