configuration/notmuch-hooks/post-new

12 lines
284 B
Plaintext
Raw Normal View History

2017-04-27 18:51:18 +02:00
#!/bin/sh
2017-10-11 10:54:31 +02:00
# some filtering
2017-10-20 10:28:52 +02:00
notmuch tag +killed -new -unread -- subject:'^[SPAM]' to:ugent
2017-10-11 10:54:31 +02:00
2017-04-27 18:51:18 +02:00
# notify for new messages
notmuch search tag:new | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send
2017-10-20 10:28:52 +02:00
# processed new messages are no longer new
notmuch tag -new -- tag:new
2017-04-27 18:51:18 +02:00