summaryrefslogtreecommitdiff
path: root/modules/home-manager/personal/profiles.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-03-02 16:40:58 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-03-02 16:40:58 +0100
commite8d6bbd026adb8e8aee6ca28d2fc6f184517e830 (patch)
tree60ce444232e27a753234a9734075689267dc2688 /modules/home-manager/personal/profiles.nix
parent79c36401d22aa65cd4db9bc64dbc1953fe849cea (diff)
home: email: properly set folders in thunderbird
Diffstat (limited to 'modules/home-manager/personal/profiles.nix')
-rw-r--r--modules/home-manager/personal/profiles.nix27
1 files changed, 21 insertions, 6 deletions
diff --git a/modules/home-manager/personal/profiles.nix b/modules/home-manager/personal/profiles.nix
index 89ffc00..3d9f6ba 100644
--- a/modules/home-manager/personal/profiles.nix
+++ b/modules/home-manager/personal/profiles.nix
@@ -104,10 +104,10 @@ in {
userName = "quentin@aristote.fr";
realName = "Quentin Aristote";
folders = {
- drafts = "Inbox/Brouillons";
- inbox = "Inbox";
- sent = "Inbox/Envoyés";
- trash = "Inbox/Corbeille";
+ drafts = "INBOX/Brouillons";
+ inbox = "INBOX";
+ sent = "INBOX/Envoyés";
+ trash = "INBOX/Corbeille";
};
imap = {
host = "ssl0.ovh.net";
@@ -120,7 +120,17 @@ in {
thunderbird = {
enable = true;
profiles = [ "default" ];
- settings = thunderbirdSettings;
+ settings = id:
+ thunderbirdSettings id // {
+ "mail.identity.id_${id}.draft_folder" =
+ "imap://quentin%40aristote.fr@ssl0.ovh.net/INBOX/Brouillons";
+ "mail.identity.id_${id}.fcc_folder" =
+ "imap://quentin%40aristote.fr@ssl0.ovh.net/INBOX/Envoy&AOk-s";
+ "mail.identity.id_${id}.archive_folder" =
+ "imap://quentin%40aristote.fr@ssl0.ovh.net/INBOX/Archive";
+ "mail.server.server_${id}.trash_folder_name" =
+ "INBOX/Corbeille";
+ };
};
};
work = lib.mkIf cfg.social.identities.work {
@@ -150,7 +160,12 @@ in {
thunderbird = {
enable = true;
profiles = [ "default" ];
- settings = thunderbirdSettings;
+ settings = id: thunderbirdSettings id // {
+ "mail.identity.id_${id}.archive_folder" =
+ "imap://qaristote@clipper.ens.fr/Archive";
+ "mail.server.server_${id}.trash_folder_name" =
+ "Trash";
+ };
};
};
};