configuration/notmuch-hooks/post-new

12 lines
272 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
notmuch tag +killed -new -- subject:'^[SPAM]' to:ugent
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-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