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]] [[search]]
x = toggletags spam,inbox x = toggletags spam,inbox
a = untag inbox a = toggletags inbox
A = tag inbox A = toggletags inbox,muted
1 = call hooks.delay(ui,1) 1 = call hooks.delay(ui,1)
2 = call hooks.delay(ui,2) 2 = call hooks.delay(ui,2)
3 = call hooks.delay(ui,3) 3 = call hooks.delay(ui,3)
@ -98,8 +98,8 @@ theme = "mutt"
i = call hooks.spam(ui) i = call hooks.spam(ui)
[[thread]] [[thread]]
a = untag inbox ; fold a = toggletags inbox ; fold
A = tag inbox ; unfold A = toggletags inbox,muted ; fold
n = nextpart n = nextpart
p = prevpart p = prevpart
u = pipeto --background selecturl 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 subject:'Onderwijsinstelling aangemaakt voor .*'
archive tag:dodona from:'logcheck system account' archive tag:dodona from:'logcheck system account'
archive tag:dodona subject:'A request took' archive tag:dodona subject:'A request took'
archive tag:dodona subject:'Een gebruiker kon niet inloggen'
archive tag:github thread:{from:dependabot} \ archive tag:github thread:{from:dependabot} \
-subject:Security \ -subject:Security \
-to:mention@noreply.github.com \ -to:mention@noreply.github.com \
@ -69,8 +70,9 @@ archive tag:github thread:{from:dependabot} \
-to:review_requested@noreply.github.com \ -to:review_requested@noreply.github.com \
-to:security_alert@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} archive thread:{tag:muted}
notmuch tag -muted -- tag:muted and date:'..30_days'
# Inbox remaining not-spam # Inbox remaining not-spam
addtag inbox "not tag: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 for delaytag in $(notmuch search --output=tags tag:delay | grep 'delay/'); do
until="$(date -d "${delaytag#*/}" +'%s')" until="$(date -d "${delaytag#*/}" +'%s')"
if [ "$today" -gt "$until" ]; then if [ "$today" -gt "$until" ]; then
notmuch tag -delay -"$delay" +inbox -- tag:"$delay" notmuch tag -delay -"$delaytag" +inbox -- tag:"$delaytag"
fi fi
done done