Constructor ImapAccountSettings
- Namespace
- MailFathom.Infrastructure.Mail
- Assembly
- MailFathom.Infrastructure.dll
ImapAccountSettings(string, string, int, string, MailAccountConnectionMaterial)
Contains validated IMAP endpoint and credential settings for one configured account.
public ImapAccountSettings(string AccountId, string Host, int Port, string UserName, MailAccountConnectionMaterial Material)
Parameters
AccountIdstringThe normalized local account identifier.
HoststringThe IMAP server host name.
PortintThe IMAP server port.
UserNamestringThe IMAP user name, which stays a plain configuration value because it is an identifier rather than a credential.
MaterialMailAccountConnectionMaterialThe 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.
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.