Constructor ClientPreferences
- Namespace
- MailFathom.Application.Preferences
- Assembly
- MailFathom.Application.dll
ClientPreferences(bool, ClientThemeChoice, bool, bool, bool, ClientMessageView, bool, int)
What one person set about their own client, which the deployment holds so it follows them between machines.
public ClientPreferences(bool TelemetryEnabled, ClientThemeChoice Theme, bool OpenMailInTabs, bool MarkReadOnOpen, bool ExpandWholeThread, ClientMessageView MessageView, bool AiFiltersShown, int NotificationSeconds)
Parameters
TelemetryEnabledboolWhether this deployment may be told what the person's client is doing, as the person answered it.
ThemeClientThemeChoiceWhat the client is painted in once a session exists.
OpenMailInTabsboolWhether opening a message opens a tab rather than replacing what is on the screen.
MarkReadOnOpenboolWhether opening a message in the client marks it read on the user's own mail server.
ExpandWholeThreadboolWhether opening a conversation draws every message in it rather than the one it was opened at.
MessageViewClientMessageViewWhich of the three renderings an open message is drawn on.
AiFiltersShownboolWhether the folder tree carries the standing views of what a derivation read in the mail.
NotificationSecondsintHow long one of the client's own notifications stands before it takes itself away.
Remarks
A closed set of eight rather than a settings service. Each of them says how somebody wants to work rather than what the screen in front of them is like, which is why they belong to the person and not to the browser profile or the desktop install they happened to set them in — and why a ninth is added when there is a ninth to add.
Marking read is here rather than on the mail account for the reason ADR 0026 gives: read state is what must not fragment between the machines one person reads on, so it covers every account that user reads and is not an operator's key.
It is deliberately not part of the user record. That document is configuration, binds strictly against the rules a configuration file does, and is written under a grant that decides what this deployment reads for a person; none of those has anything to do with whether a person may turn telemetry off or choose a theme.
Nothing here is personal data about a third party and nothing here is mail. What it does carry is a decision about what may be said about this person, which is why the switch is theirs to set under the grant over their own profile rather than under one an administrator maintains over their mail accounts.
That decision is theirs unless a settings policy takes it. The deployment's policy, or the policy of the organization they belong to, may force TelemetryEnabled on or off, and while one does the value held here is their own answer rather than the one applied: it is kept as they gave it, it decides nothing, and it applies again when no policy forces the switch. The other seven are never governed. ADR 0037 records the exception and what forcing the switch on owes the person it is about.