filter before notifying
This commit is contained in:
parent
04423b1248
commit
08459c6382
@ -1,14 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# some filtering
|
||||
notmuch tag +killed -new -- subject:'^[SPAM]' to:ugent
|
||||
|
||||
# notify for new messages
|
||||
notmuch search tag:new | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send
|
||||
|
||||
# put new messages in the inbox
|
||||
notmuch tag +inbox -new -- tag:new
|
||||
|
||||
# some filtering
|
||||
notmuch tag +killed -- subject:'^[SPAM]' to:ugent
|
||||
|
||||
# remove killed thread from inbox
|
||||
notmuch tag -inbox -- tag:killed
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user