Table of Contents

Interface ISenderTrustPolicyReader

Namespace
MailFathom.Application.Mail
Assembly
MailFathom.Application.dll

Resolves the trusted senders one account judges its arriving mail by.

public interface ISenderTrustPolicyReader

Remarks

The list is per account because the accounts an instance synchronizes are different correspondence: a work account's counterparties have nothing to do with a personal one's, and a single list would either recognize too much on one account or make an owner maintain the union of both. What is deployment-wide is the set of domains the configured accounts themselves use, which every account's policy is built with unless the deployment says otherwise.

The configured half is validated at startup, so this never fails and never returns a policy a caller has to check again. An account this deployment no longer configures answers with RecognizingNobody for the reason every per-account reader here does: a reading over mail whose account a reload removed must recognize nobody rather than throw.

Methods

GetTrustPolicy(MailAccountId)

Gets the policy one account's mail is judged by.