From 128b498f77d9afac228f2f3dde9a19c463aaf285 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 2 May 2022 17:04:34 +0200 Subject: [PATCH] home: mail: separate email channels Provide a "full" channel that synchronized everything, and a lightweight "main" channel that fetches just what I need quickly. --- home/mail.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/home/mail.nix b/home/mail.nix index 4f7e097..69dac83 100644 --- a/home/mail.nix +++ b/home/mail.nix @@ -42,6 +42,26 @@ in { enable = true; create = "both"; expunge = "both"; + groups = { + alarsyo-main.channels.alarsyo-main = { + patterns = ["INBOX" "Sent" "Drafts" "Junk" "Trash"]; + extraConfig = { + Create = "Both"; + Expunge = "Both"; + Remove = "None"; + SyncState = "*"; + }; + }; + alarsyo-full.channels.alarsyo-full = { + patterns = ["*" "!INBOX" "!Sent" "!Drafts" "!Junk" "!Trash"]; + extraConfig = { + Create = "Both"; + Expunge = "Both"; + Remove = "None"; + SyncState = "*"; + }; + }; + }; }; msmtp.enable = true; mu.enable = true;