mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
thunderbird: set the correct SMTP server for aliases (#6177)
Some checks are pending
GitHub Pages / publish (ubuntu-latest) (push) Waiting to run
Some checks are pending
GitHub Pages / publish (ubuntu-latest) (push) Waiting to run
Previously, only the main identity of an account would get the proper SMTP server assigned. Identities corresponding to aliases would not get an SMTP server assigned at all, leading to a (Thunderbird-internal) fallback to the SMTP server associated to the primary account. This is obviously wrong for non-primary accounts having aliases associated to them. Fix it by specifying the SMTP server explicitly for all identities.
This commit is contained in:
@@ -71,6 +71,8 @@ let
|
||||
"mail.identity.id_${id}.openpgp_key_id" = account.gpg.key;
|
||||
"mail.identity.id_${id}.protectSubject" = true;
|
||||
"mail.identity.id_${id}.sign_mail" = account.gpg.signByDefault;
|
||||
} // optionalAttrs (account.smtp != null) {
|
||||
"mail.identity.id_${id}.smtpServer" = "smtp_${account.id}";
|
||||
} // account.thunderbird.perIdentitySettings id;
|
||||
|
||||
toThunderbirdAccount = account: profile:
|
||||
@@ -103,7 +105,6 @@ let
|
||||
"mail.server.server_${id}.type" = "imap";
|
||||
"mail.server.server_${id}.userName" = account.userName;
|
||||
} // optionalAttrs (account.smtp != null) {
|
||||
"mail.identity.id_${id}.smtpServer" = "smtp_${id}";
|
||||
"mail.smtpserver.smtp_${id}.authMethod" = 3;
|
||||
"mail.smtpserver.smtp_${id}.hostname" = account.smtp.host;
|
||||
"mail.smtpserver.smtp_${id}.port" =
|
||||
|
||||
Reference in New Issue
Block a user