tag based on file location, simplify tagging order, ignore mbsync files, more spammers

This commit is contained in:
Felix Van der Jeugt 2019-04-18 17:08:29 +02:00
parent 20f299ed36
commit 6f38137503
No known key found for this signature in database
GPG key ID: 58B209295023754D
6 changed files with 48 additions and 24 deletions

View file

@ -1,11 +1,5 @@
#!/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
notmuch search tag:new | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send
notmuch tag -new +unread -- tag:new