Table of Contents

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

AccountId string

The normalized local account identifier.

Host string

The IMAP server host name.

Port int

The IMAP server port.

UserName string

The IMAP user name, which stays a plain configuration value because it is an identifier rather than a credential.

Material MailAccountConnectionMaterial

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.

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.