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

@ -84,8 +84,8 @@ theme = "mutt"
[[search]]
x = toggletags spam,inbox
a = untag inbox
A = tag inbox
a = toggletags inbox
A = toggletags inbox,muted
1 = call hooks.delay(ui,1)
2 = call hooks.delay(ui,2)
3 = call hooks.delay(ui,3)
@ -98,8 +98,8 @@ theme = "mutt"
i = call hooks.spam(ui)
[[thread]]
a = untag inbox ; fold
A = tag inbox ; unfold
a = toggletags inbox ; fold
A = toggletags inbox,muted ; fold
n = nextpart
p = prevpart
u = pipeto --background selecturl

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