Table of Contents

Constructor MailAccountQueryableSettings

Namespace
MailFathom.Infrastructure.Persistence.Users.AccountSettings
Assembly
MailFathom.Infrastructure.dll

MailAccountQueryableSettings(bool, MailSynchronizationMode, bool, IReadOnlyList<SensitiveContentScannerKind>, IReadOnlyList<SensitiveContentScannerKind>, IReadOnlyList<MailAccountQueryableFolder>)

The settings of one account a question about every account at once filters on, read out of its document.

public MailAccountQueryableSettings(bool IsReadable, MailSynchronizationMode SynchronizationMode, bool ClassifiesSpam, IReadOnlyList<SensitiveContentScannerKind> ScansFor, IReadOnlyList<SensitiveContentScannerKind> ScreensOutgoingMailFor, IReadOnlyList<MailAccountQueryableFolder> Folders)

Parameters

IsReadable bool

Whether the document binds at all; an account whose document does not is served nothing and asks for nothing.

SynchronizationMode MailSynchronizationMode

How the account asked to be synchronized.

ClassifiesSpam bool

Whether the account's mail is classified.

ScansFor IReadOnlyList<SensitiveContentScannerKind>

The scanners the account switched on for itself, whatever the deployment provides.

ScreensOutgoingMailFor IReadOnlyList<SensitiveContentScannerKind>

The scanners whose findings the account asked to stop a message it sends.

Folders IReadOnlyList<MailAccountQueryableFolder>

Every folder the account is run with, which is the inbox alone where its document maps none.

Remarks

The document stays the account's settings and this is never written on its own: the configuration layer reads it out of the document it binds, and the store writes both in one transaction, which is what keeps the two from disagreeing. Nothing here is composed with the deployment's own settings, so what an account asked for is recorded as it asked, and a reader composes it with whatever the deployment provides when it is read.