Method Create
- Namespace
- MailFathom.Domain.Contacts.Collection
- Assembly
- MailFathom.Domain.dll
Create(IReadOnlyList<ContactCollectionExclusion>, IReadOnlyCollection<EmailAddress>)
Builds the policy one account collects under.
public static ContactCollectionPolicy Create(IReadOnlyList<ContactCollectionExclusion> exclusions, IReadOnlyCollection<EmailAddress> ownAddresses)
Parameters
exclusionsIReadOnlyList<ContactCollectionExclusion>What the owner excluded by domain or by pattern.
ownAddressesIReadOnlyCollection<EmailAddress>The mailboxes this deployment reads on its owner's behalf.
Returns
- ContactCollectionPolicy
The policy.
Remarks
The own addresses are a set rather than a list because they are matched on every address of every message, and they are the deployment's rather than the account's: an owner writing from one of their accounts to another is not a correspondent of themselves.
Exceptions
- ArgumentNullException
Thrown when an argument is null.