filter before notifying

This commit is contained in:
Felix Van der Jeugt 2017-10-11 10:54:31 +02:00
parent 04423b1248
commit 08459c6382
No known key found for this signature in database
GPG Key ID: 58B209295023754D
1 changed files with 3 additions and 6 deletions

View File

@ -1,14 +1,11 @@
#!/bin/sh
# some filtering
notmuch tag +killed -new -- 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
# some filtering
notmuch tag +killed -- subject:'^[SPAM]' to:ugent
# remove killed thread from inbox
notmuch tag -inbox -- tag:killed