thinkpad-nixos: Correctly handle self mails

This commit is contained in:
traxys 2023-06-08 09:34:37 +02:00
parent cc62ea0f28
commit 27fb62c0b3

View file

@ -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
'';
};
};