configuration/notmuch-hooks/post-new

6 lines
157 B
Bash
Executable File

#!/bin/sh
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