configuration/notmuch-hooks/post-new
2017-10-10 14:11:43 +02:00

15 lines
335 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