Class ServedMailAccount
- Namespace
- MailFathom.Application.Accounts
- Assembly
- MailFathom.Application.dll
Describes one mail account this deployment serves, as the account's own record declares it.
public sealed record ServedMailAccount : IEquatable<ServedMailAccount>
- Inheritance
-
ServedMailAccount
- Implements
- Inherited Members
Remarks
It carries what an operator decided about the account and nothing about how MailFathom reaches it. The host, the port, the user name, and every secret reference are deliberately absent: they are the deployment's connection detail rather than a property of the mailbox, and this record travels to places — a published tool result among them — where none of them may go.
No user travels with it, and that absence is the whole of what makes one mailbox one mailbox. An account is assigned to however many users an administrator assigned it to, so a record that named one of them would name whichever assignment happened to be read first; whose mail an account's rows are follows from the assignments rather than from a column, which is why a write that has resolved an account has resolved everything it needs to record.
The mode states the operator's request rather than what a folder actually got. Whether push is served is decided per folder against what the mail server advertises and how recent attempts went, which is a synchronization observation and is reported where those are.
Constructors
- ServedMailAccount(MailAccountId, MailAccountDisplayName, MailSynchronizationMode)
Describes one mail account this deployment serves, as the account's own record declares it.
Properties
- DisplayName
The name the account is published under, which is what a person reading a result recognizes.
- Id
The generated identifier every stored row, cursor, and log line names the account by, across the whole deployment.
- SynchronizationMode
What the operator asked to start the account's next synchronization pass.
Methods
- IsNamedBy(MailAccountSelector)
Reports whether text a request carried names this account.