configuration/notmuch-hooks/post-new

15 lines
337 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
2017-10-09 10:21:13 +02:00
# put new messages in the inbox
2017-04-27 18:51:18 +02:00
notmuch tag +inbox -new -- tag:new
2017-10-09 10:21:13 +02:00
# some filtering
notmuch tag +killed -- subject:'^\[SPAM\]' to:ugent
# remove killed thread from inbox
notmuch tag -inbox -- tag:killed