Table of Contents

Interface ISensitiveContentPostures

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

Answers what the mail in one account is scanned under, composed from the deployment's posture and the account's own.

public interface ISensitiveContentPostures

Remarks

The composition is one-directional and that is the whole rule: an account may switch on a scanner the deployment left off and refuse more of its own outgoing mail, and may never switch off or narrow what the deployment set. The deployment operator carries the legal obligation, so what they required stands for every mailbox they hold; what an account adds is that mailbox's alone. A write attempting the other direction is refused at the write, naming the deployment setting it would narrow.

It is the account rather than the user because the mail is one copy: a mailbox two people are assigned is scanned once, under the settings written on the account they share, so neither of them reads mail the other's posture judged. A path that reads across the accounts one user is assigned has no single account to ask about and asks AcrossAccountsOfAsync(UserId, CancellationToken) instead, which answers with the strictest of them.

A record already held is composed rather than refused, so this port and the record are two different readings and a consumer asking what is in force asks here. An account whose record was accepted before the deployment tightened past it goes on holding what it asked for while the stricter answer runs over its mail, and one that switched the personal-data scanner on holds that answer after an operator removes the analyzer address, while nothing scans it for that — a record that stayed authoritative through either would fail a deployment closed at its next start, from behind the surface that would have let its settings be rewritten. The record states what was asked for; this states what happens to the mail.

It is a port because the postures are composed from configuration, which is the host's, while every path that scans lives above it. The answer about one account is read from that account's record, and a replica may reuse it for a short while, because a path that scans asks about the account it scans for on every message. The answers about more than one account — every account, or every account of one user — are read from the account records themselves, because no replica holds every account to walk. A work unit that enters an acting scope reads the answer it needs once, when it begins, rather than in front of each value it guards. A flow acting for nobody has no such beginning, so the egress guard asks IsActiveForAnyAccountAsync(CancellationToken) once per value it guards there.

Properties

Deployment

Gets what mail is scanned under where its account's own record asks for nothing more.

Methods

AcrossAccountsOfAsync(UserId, CancellationToken)

Finds what a read spanning every account one user is assigned is scanned under.

ForAccountAsync(MailAccountId, CancellationToken)

Finds what the mail in one account is scanned under.

IsActiveForAnyAccountAsync(CancellationToken)

Gets whether any account this deployment serves has anything scanned for at all.

ReadAccountsBeyondDeploymentAsync(CancellationToken)

Reads what every account whose own record asks for more than Deployment has its mail scanned under, ordered by account.

RunsForAnyAccountAsync(SensitiveContentScannerKind, CancellationToken)

Reports whether one scanner runs over any mail on this deployment.