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