Rudolf Adamkovič Personal site


Configuration: post-new hook

The ‘~/.notmuch/hooks/post-new’ script

runs just after notmuch new,

written in Bash:

echo "Tagging messages in muted threads..."
MUTED_THREADS=($(notmuch search --output=threads tag:muted))
if test ${#MUTED_THREADS[@]} -gt 0; then
  notmuch tag +muted -- ${MUTED_THREADS[@]}
fi

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.