configuration/notmuch-hooks/post-new
2019-03-11 10:52:20 +01:00

12 lines
271 B
Bash
Executable File

#!/bin/sh
# filtering spam
afew --tag --new -e SpamFilter,KnownSpammers
notmuch tag -new -- tag:spam and tag:new
# notify for new messages
notmuch search tag:new | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send
# tagging messages
afew --tag --new