diff --git a/notmuch-hooks/post-new b/notmuch-hooks/post-new index 7eb4d6f..b768d63 100755 --- a/notmuch-hooks/post-new +++ b/notmuch-hooks/post-new @@ -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 -