configuration/notmuch-hooks/post-new

12 lines
271 B
Plaintext
Raw Normal View History

2017-04-27 18:51:18 +02:00
#!/bin/sh
2019-03-11 10:52:20 +01:00
# filtering spam
afew --tag --new -e SpamFilter,KnownSpammers
notmuch tag -new -- tag:spam and tag:new
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
2019-03-11 10:52:20 +01:00
# tagging messages
afew --tag --new