Better keybinds and use correct tag variable

This commit is contained in:
Felix Van der Jeugt 2020-01-08 12:08:26 +01:00
parent 1f4cb48916
commit 1e802d9107
No known key found for this signature in database
GPG key ID: 58B209295023754D
2 changed files with 8 additions and 6 deletions

View file

@ -62,6 +62,7 @@ addtag github "from:notifications@github.com"
archive tag:dodona subject:'Onderwijsinstelling aangemaakt voor .*'
archive tag:dodona from:'logcheck system account'
archive tag:dodona subject:'A request took'
archive tag:dodona subject:'Een gebruiker kon niet inloggen'
archive tag:github thread:{from:dependabot} \
-subject:Security \
-to:mention@noreply.github.com \
@ -69,8 +70,9 @@ archive tag:github thread:{from:dependabot} \
-to:review_requested@noreply.github.com \
-to:security_alert@noreply.github.com
# Muted threads stay muted.
# Muted threads stay muted for a month after arrival
archive thread:{tag:muted}
notmuch tag -muted -- tag:muted and date:'..30_days'
# Inbox remaining not-spam
addtag inbox "not tag:spam"
@ -81,6 +83,6 @@ today="$(date +'%s')"
for delaytag in $(notmuch search --output=tags tag:delay | grep 'delay/'); do
until="$(date -d "${delaytag#*/}" +'%s')"
if [ "$today" -gt "$until" ]; then
notmuch tag -delay -"$delay" +inbox -- tag:"$delay"
notmuch tag -delay -"$delaytag" +inbox -- tag:"$delaytag"
fi
done