Table of Contents

Class SensitiveContentRule

Namespace
MailFathom.Application.SensitiveContent
Assembly
MailFathom.Application.dll

One detection rule inside a category, which is the finest thing an operator can name.

public sealed record SensitiveContentRule : IEquatable<SensitiveContentRule>
Inheritance
SensitiveContentRule
Implements
Inherited Members

Remarks

A rule is always carried with the category it belongs to, because the same rule name may exist under two categories and a suppression that named only the rule would silence both. Carrying the pair is also what makes a suppression unable to switch a category on: it names something inside a category rather than the category itself.

A rule is never the unit a scanner is configured by. It exists so a single entry of a corpus that misfires on one deployment's mail can be silenced without that deployment giving up the category around it.

Properties

Category

Gets the category this rule belongs to.

Name

Gets the rule's name, as the scanner that declares it spells it.

Methods

Create(SensitiveContentCategory, string)

Creates a rule from a declared or configured name inside a category.

HasName(string)

Reports whether a configured name is this rule's, ignoring how it was capitalized.

ToString()

Returns a string that represents the current object.