Re: Pre-new hook not working

Subject: Re: Pre-new hook not working

Date: Wed, 14 Jan 2026 07:21:37 +0900

To: Khalid Rafi, notmuch@notmuchmail.org

Cc:

From: David Bremner


Khalid Rafi <emacs@khalidrafi.me> writes:

> I'm using Notmuch in Arch Linux. I have no hooks_dir specified in my
> config and I have placed my pre-new bash script under
> ~/notmuch/default/hooks. But, when I run `notmuch new`, it doesn't
> execute the script? Why could have been the issue?
>

Hi Khalid;

That's not a location notmuch knows about, unless XDG_CONFIG_HOME is the
same as HOME. Also, the notmuch config variable is
database.hook_dir. See "HOOKS" in notmuch-config(1) for details.  In the
case that $XDG_CONFIG_HOME=$HOME, you might have found a bug, as that's
probably not well tested.

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: