Class ImapAccountSettings
- Namespace
- MailFathom.Infrastructure.Mail
- Assembly
- MailFathom.Infrastructure.dll
Contains validated IMAP endpoint and credential settings for one configured account.
public sealed record ImapAccountSettings : IEquatable<ImapAccountSettings>
- Inheritance
-
ImapAccountSettings
- Implements
- Inherited Members
Remarks
Connection security and permitted authentication mechanisms are deliberately absent: they travel with the account's transport security policy, which the caller hands to the session factory. Every member is plain IMAP endpoint vocabulary, so replacing the IMAP client library would leave this type unchanged and its name must not name one. The synthesized ToString() is safe only because MailAccountConnectionMaterial redacts its password.
Constructors
- ImapAccountSettings(string, string, int, string, MailAccountConnectionMaterial)
Contains validated IMAP endpoint and credential settings for one configured account.
Properties
- AccountId
The normalized local account identifier.
- Host
The IMAP server host name.
- Material
The password and trust anchor this account's operation resolved. This record is a carrier and does not own them: the operation that requested the settings owns the material and must dispose it when it ends.
- Port
The IMAP server port.
- UserName
The IMAP user name, which stays a plain configuration value because it is an identifier rather than a credential.