Table of Contents

Interface IMailAccountPolicyJudge

Namespace
MailFathom.Infrastructure.Persistence.Policies.MailAccounts
Assembly
MailFathom.Infrastructure.dll

Judges a mail account against the policies a write would leave it governed by.

public interface IMailAccountPolicyJudge

Remarks

The mail-account half of IUserRecordPolicyJudge, asked by the same two writes for the same reason: a write of a policy and a move of an account between organizations change which policies govern an account without writing it, and each has to know, before it commits, whether the account is still one this deployment can serve and what the columns every question about all accounts filters on are to hold.

A third answer is asked of an account and never of a user. A default or a forced value can decide where a mailbox's credential is presented, so a write made under a grant held below the deployment is refused where it changes the effective settings of an account naming a secret that was not provisioned for a user the account is assigned to — the bound an account's own write is held to, reached through a policy instead.

An implementation reads nothing and performs no I/O: everything it judges is handed to it.

Methods

Judge(IReadOnlyList<GovernedMailAccount>, bool)

Judges the accounts one write reaches, each under the policies the write would leave it governed by.