Filter dependabot and syscheck mails, no notifications

This commit is contained in:
Felix Van der Jeugt 2019-11-21 15:12:59 +01:00
parent 259680d31a
commit fc7d0e20f9
No known key found for this signature in database
GPG Key ID: 58B209295023754D
1 changed files with 9 additions and 6 deletions

View File

@ -59,15 +59,18 @@ done
addtag github "from:notifications@github.com"
# Uninteresting
archive tag:dodona and subject:'Onderwijsinstelling aangemaakt voor .*'
archive tag:github and subject:dodona-edu/dodona and thread:{from:dependabot}
archive tag:dodona subject:'Onderwijsinstelling aangemaakt voor .*'
archive tag:dodona from:'logcheck system account'
archive tag:github thread:{from:dependabot} \
-subject:Security \
-to:mention@noreply.github.com \
-to:assign@noreply.github.com \
-to:review_requested@noreply.github.com \
-to:security_alert@noreply.github.com
# And stay down!
#addtag killed "thread:{tag:killed}"
# Notify about new messages
notmuch search tag:new | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send
# Inbox remaining not-spam
addtag inbox "not tag:spam"
notmuch tag -new -- tag:new
@ -79,4 +82,4 @@ for mutetag in $(notmuch search --output=tags tag:muted | grep 'muted/'); do
if [ "$today" -gt "$until" ]; then
notmuch tag -muted -"$mutetag" +inbox -- tag:"$mutetag"
fi
done
done