diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-03-02 16:40:58 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-03-02 16:40:58 +0100 |
| commit | e8d6bbd026adb8e8aee6ca28d2fc6f184517e830 (patch) | |
| tree | 60ce444232e27a753234a9734075689267dc2688 /modules/home-manager/personal | |
| parent | 79c36401d22aa65cd4db9bc64dbc1953fe849cea (diff) | |
home: email: properly set folders in thunderbird
Diffstat (limited to 'modules/home-manager/personal')
| -rw-r--r-- | modules/home-manager/personal/profiles.nix | 27 |
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"; + }; }; }; }; |
