configuration/notmuch-hooks/post-new
2017-10-09 10:21:13 +02:00

15 lines
337 B
Bash
Executable File

#!/bin/sh
# 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