about summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-09-06 17:42:36 -0700
committerFranck Cuny <franck@fcuny.net>2022-09-07 19:10:46 -0700
commitb53e3855c1385ca63d3ff9e0ae58ff2df3dc7126 (patch)
tree013810e8686ba9e48eedff37ece1da66ba76ee4e /home
parentfeat(home/terraform): install the LSP server (diff)
downloadworld-b53e3855c1385ca63d3ff9e0ae58ff2df3dc7126.tar.gz
fix(home/email): remove inbox tag for archived emails
Change-Id: If0b49ce46875f9f5bd35b792596796bcdb85b3e9
Diffstat (limited to 'home')
-rw-r--r--home/mail/accounts/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/home/mail/accounts/default.nix b/home/mail/accounts/default.nix
index 1e4ed07..67ac4fb 100644
--- a/home/mail/accounts/default.nix
+++ b/home/mail/accounts/default.nix
@@ -69,7 +69,10 @@ in
         Environment = [
           "PASSWORD_STORE_DIR=${config.programs.password-store.settings.PASSWORD_STORE_DIR}"
         ];
-        ExecStartPre = "${pkgs.afew}/bin/afew -m -v";
+        ExecStartPre = [
+          "${pkgs.notmuch}/bin/notmuch tag '-inbox' 'tag:inbox AND tag:archive'"
+          "${pkgs.afew}/bin/afew -m -v"
+        ];
         ExecStart = "${pkgs.isync}/bin/mbsync -a";
         ExecStartPost = "${pkgs.notmuch}/bin/notmuch new --quiet";
       };