#!/usr/bin/env bash # Notmuch post-insert hook # This hook is invoked by the insert command after the message has # been delivered, added to the database, and initial tags have # been applied. The hook will not be run if there have been any # errors during the message delivery; what is regarded as success‐ # ful delivery depends on the --keep option. # Typically this hook is used to perform additional query-based # tagging on the delivered messages. # TODO: In notmuch v0.35, the location of this hook becomes configurable. # When I have that installed, I want to move this to ~/.config/notmuch.