use afew for tagging

This commit is contained in:
Felix Van der Jeugt 2019-03-11 10:52:20 +01:00
parent 9fd709b6f2
commit 20f299ed36
No known key found for this signature in database
GPG key ID: 58B209295023754D
6 changed files with 194 additions and 11 deletions

View file

@ -1,11 +1,11 @@
#!/bin/sh
# some filtering
notmuch tag +killed -new -unread -- subject:'^[SPAM]' to:ugent
# 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
# processed new messages are no longer new
notmuch tag -new -- tag:new
# tagging messages
afew --tag --new