replace inbox tag with archived tag

This commit is contained in:
Felix Van der Jeugt 2017-10-20 10:28:52 +02:00
parent 21759ab1dd
commit 9b3143afd6
No known key found for this signature in database
GPG Key ID: 58B209295023754D
3 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,5 @@
initial_command = search (tag:inbox OR tag:draft) AND NOT tag:killed initial_command = search NOT tag:killed AND NOT tag:archived
periodic_hook_frequency = 60 periodic_hook_frequency = 60
attachment_prefix = /data/temporary attachment_prefix = /data/temporary
@ -15,7 +15,7 @@ prefer_plaintext = True
sendmail_command = /usr/bin/msmtp --account=gmail -t sendmail_command = /usr/bin/msmtp --account=gmail -t
sent_box = maildir:///data/mail/gmail/Sent sent_box = maildir:///data/mail/gmail/Sent
draft_box = maildir:///data/mail/gmail/Sent draft_box = maildir:///data/mail/gmail/Sent
sent_tags = inbox sent_tags = # none
sign_by_default = True sign_by_default = True
[[[abook]]] [[[abook]]]
@ -33,7 +33,7 @@ prefer_plaintext = True
sendmail_command = /usr/bin/msmtp --account=ugent -t sendmail_command = /usr/bin/msmtp --account=ugent -t
sent_box = maildir:///data/mail/ugent/Sent sent_box = maildir:///data/mail/ugent/Sent
draft_box = maildir:///data/mail/ugent/Sent draft_box = maildir:///data/mail/ugent/Sent
sent_tags = inbox sent_tags = # none
sign_by_default = True sign_by_default = True
[[[abook]]] [[[abook]]]
@ -45,4 +45,7 @@ prefer_plaintext = True
[bindings] [bindings]
t = toggletags selected; move down t = toggletags selected; move down
x = 'toggletags inbox,killed'
[[search]]
x = toggletags killed
a = toggletags archived

View File

@ -61,7 +61,7 @@ ignore=
# query will override that exclusion. # query will override that exclusion.
# #
[search] [search]
exclude_tags=deleted;spam; exclude_tags=killed;deleted;spam;
# Maildir compatibility configuration # Maildir compatibility configuration
# #

View File

@ -1,11 +1,11 @@
#!/bin/sh #!/bin/sh
# some filtering # some filtering
notmuch tag +killed -new -- subject:'^[SPAM]' to:ugent notmuch tag +killed -new -unread -- subject:'^[SPAM]' to:ugent
# notify for new messages # notify for new messages
notmuch search tag:new | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send notmuch search tag:new | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send
# put new messages in the inbox # processed new messages are no longer new
notmuch tag +inbox -new -- tag:new notmuch tag -new -- tag:new