Method Create
- Namespace
- MailFathom.Domain.Emails.Authentication
- Assembly
- MailFathom.Domain.dll
Create(IEnumerable<SenderDomain>, IEnumerable<TrustedSenderEntry>, IEnumerable<TrustedSenderEntry>)
Builds the policy one account judges its mail by.
public static SenderTrustPolicy Create(IEnumerable<SenderDomain> ownAccountDomains, IEnumerable<TrustedSenderEntry> configuredTrustedSenders, IEnumerable<TrustedSenderEntry> storedTrustedSenders)
Parameters
ownAccountDomainsIEnumerable<SenderDomain>The domains of the accounts this deployment synchronizes, or none where they do not count.
configuredTrustedSendersIEnumerable<TrustedSenderEntry>What the account's configuration declares it recognizes.
storedTrustedSendersIEnumerable<TrustedSenderEntry>What was added to the account's stored list while the deployment was running.
Returns
- SenderTrustPolicy
The policy, which recognizes nobody when all three are empty.
Exceptions
- ArgumentNullException
Thrown when an argument is null.