15 lines
337 B
Bash
Executable File
15 lines
337 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# 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
|
|
|