thunderbird: use account id for IMAP directory name

This allows users to have multiple accounts on the same domain within
the same profile.

Fixes #3448.
This commit is contained in:
David 2022-11-30 23:00:27 +01:00 committed by Robert Helgesson
parent 17bbfcb824
commit 2b02f8c7cb
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 8 additions and 9 deletions

View file

@ -62,9 +62,8 @@ let
"mail.identity.id_${id}.sign_mail" = account.gpg.signByDefault;
} // optionalAttrs (account.imap != null) {
"mail.server.server_${id}.directory" =
"${thunderbirdProfilesPath}/${profile.name}/ImapMail/${account.imap.host}";
"mail.server.server_${id}.directory-rel" =
"[ProfD]ImapMail/${account.imap.host}";
"${thunderbirdProfilesPath}/${profile.name}/ImapMail/${id}";
"mail.server.server_${id}.directory-rel" = "[ProfD]ImapMail/${id}";
"mail.server.server_${id}.hostname" = account.imap.host;
"mail.server.server_${id}.login_at_startup" = true;
"mail.server.server_${id}.name" = account.name;