From 27fb62c0b32793cf36fd7e86e47d886a7159e645 Mon Sep 17 00:00:00 2001 From: traxys Date: Thu, 8 Jun 2023 09:34:37 +0200 Subject: [PATCH] thinkpad-nixos: Correctly handle self mails --- hostconfig/thinkpad-nixos/hm.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hostconfig/thinkpad-nixos/hm.nix b/hostconfig/thinkpad-nixos/hm.nix index 9b0b250..93d4a2e 100644 --- a/hostconfig/thinkpad-nixos/hm.nix +++ b/hostconfig/thinkpad-nixos/hm.nix @@ -242,7 +242,8 @@ in { mkProjectMatches = labels: lib.concatStringsSep " or " (builtins.map mkProjectMatch labels); mkProject = tag: labels: '' - notmuch tag +${tag} +unread -new -- tag:new and \( ${mkProjectMatches labels} \) + notmuch tag +${tag} -unread -new -- tag:new and \( ${mkProjectMatches labels} \) and tag:me + notmuch tag +${tag} +unread -new -- tag:new and \( ${mkProjectMatches labels} \) and not tag:me ''; spammyFilters = [ @@ -265,6 +266,7 @@ in { ${mkProject "hps" ["bxi-hps"]} ${mkProject "doc" ["bxi-doc"]} notmuch tag +inbox +unread -new -- tag:new and not tag:me + notmuch tag +inbox -unread -new -- tag:new and tag:me ''; }; };