configuration/notmuch-hooks/post-new

9 lines
208 B
Plaintext
Raw Normal View History

2017-04-27 18:51:18 +02:00
#!/bin/sh
# notify for new messages
notmuch search tag:new | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send
# finally, put new messages in the inbox
notmuch tag +inbox -new -- tag:new