Struct MailAccountDisplayName
- Namespace
- MailFathom.Domain.Accounts
- Assembly
- MailFathom.Domain.dll
Names a configured mail account the way a person reading an answer about it recognizes it.
public readonly record struct MailAccountDisplayName : IEquatable<MailAccountDisplayName>
- Implements
- Inherited Members
Remarks
It stands beside MailAccountId rather than replacing it. The identifier is the stable identity every stored row, cursor, and log line is expressed in, and it survives a rename of the mailbox it points at; this is the text published to a caller so that "which mailbox is this" has an answer somebody other than the operator can read.
The operator's casing is kept rather than normalized away, because the value exists to be read and
Work mail is not WORK MAIL to the person who wrote it. Matching it is therefore a case-insensitive
comparison at the point of use rather than a canonical form stored here, which is the opposite of the decision
MailFolderAlias takes — an alias is compared inside a database whose
collation MailFathom does not control, and this value is compared only in process.
Fields
- MaximumLength
The greatest length a display name may carry.
Properties
- Value
Gets the display name as the operator wrote it, trimmed.
Methods
- Create(string)
Creates a display name from configuration-owned text.
- ToString()
Returns the fully qualified type name of this instance.