configuration/notmuch-hooks/post-new
2017-10-20 10:28:52 +02:00

12 lines
284 B
Bash
Executable File

#!/bin/sh
# some filtering
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
# processed new messages are no longer new
notmuch tag -new -- tag:new