mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-14 11:20:19 +01:00
thinkpad-nixos: Filter out spammy mails
This commit is contained in:
parent
b2a95d6ce7
commit
12a41f3164
1 changed files with 14 additions and 4 deletions
|
|
@ -81,7 +81,7 @@ in {
|
|||
postpone = "Drafts";
|
||||
source = "notmuch://~/Maildir";
|
||||
query-map = "${pkgs.writeText "querymap" ''
|
||||
inbox=tag:inbox
|
||||
inbox=tag:inbox and not tag:spammy
|
||||
inflight=thread:{tag:inflight}
|
||||
review=thread:{tag:review}
|
||||
_unread=tag:unread
|
||||
|
|
@ -242,15 +242,25 @@ in {
|
|||
mkProject = tag: labels: ''
|
||||
notmuch tag +${tag} +unread -new -- tag:new and \( ${mkProjectMatches labels} \)
|
||||
'';
|
||||
|
||||
spammyFilters = [
|
||||
"subject:'[confluence] Recommended in Confluence for Boyer, Quentin'"
|
||||
"subject:'[PCI-SIG]'"
|
||||
"from:enterprisedb.com"
|
||||
"from:GIGA@***REMOVED***"
|
||||
];
|
||||
|
||||
spammySearch = lib.concatStringsSep " or " spammyFilters;
|
||||
in ''
|
||||
notmuch tag +work -- tag:new and 'path:work/**'
|
||||
notmuch tag +inflight -- tag:new and from:quentin.boyer@***REMOVED*** and subject:'/^\[PATCH/'
|
||||
notmuch tag +review -- tag:new and not from:quentin.boyer@***REMOVED*** and subject:'/^\[PATCH/'
|
||||
notmuch tag +inflight -- tag:new and from:${workAddr} and subject:'/^\[PATCH/'
|
||||
notmuch tag +review -- tag:new and not from:${workAddr} and subject:'/^\[PATCH/'
|
||||
notmuch tag -unread -- tag:new and from:${workAddr}
|
||||
notmuch tag -unread -new +spammy -- tag:new and \( ${spammySearch} \)
|
||||
${mkProject "btf" ["bxi-test-frameworks" "bxi-frameworks"]}
|
||||
${mkProject "bxi3" ["bxi3"]}
|
||||
${mkProject "libs2" ["bxi-jenkins-libs2"]}
|
||||
${mkProject "hps" ["bxi-hps"]}
|
||||
notmuch tag -new -unread -- tag:new and from:quentin.boyer@***REMOVED***
|
||||
notmuch tag +inbox +unread -new -- tag:new
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue