From b53e3855c1385ca63d3ff9e0ae58ff2df3dc7126 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 6 Sep 2022 17:42:36 -0700 Subject: fix(home/email): remove inbox tag for archived emails Change-Id: If0b49ce46875f9f5bd35b792596796bcdb85b3e9 --- home/mail/accounts/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"; }; -- cgit 1.4.1