configuration/notmuch-hooks/post-new
2017-10-11 10:54:31 +02:00

12 lines
272 B
Bash
Executable File

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