Table of Contents

Class MailAccountQueryableSettings

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

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

public sealed record MailAccountQueryableSettings : IEquatable<MailAccountQueryableSettings>
Inheritance
MailAccountQueryableSettings
Implements
Inherited Members

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.

Constructors

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.

Properties

ClassifiesSpam

Whether the account's mail is classified.

Folders

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

IsReadable

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

ScansFor

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

ScreensOutgoingMailFor

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

SynchronizationMode

How the account asked to be synchronized.

Unreadable

Gets the settings of an account whose document does not bind, which takes part in nothing.