* Usage of hooks w/ notmuch
@ 2023-06-23 11:45 Jan Detke
2023-06-23 16:42 ` David Bremner
0 siblings, 1 reply; 2+ messages in thread
From: Jan Detke @ 2023-06-23 11:45 UTC (permalink / raw)
To: notmuch
Hi,
I got a problem using hooks with notmuch (Version 0.37-3). I specified the hook directory under [database] in my notmuch config. The script (post-new.sh) is executable and works when invoked manually in the terminal, but it does not get executed after invoking notmuch new. There is no additional output given in the terminal.
I also paid attation to the following section of the documentation https://notmuchmail.org/initial_tagging/ and applied the given examples on my system. Hook still wont run.
Do I have to make additional changes in my config in order to use hooks (mainly post-new)?
Best regards
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Usage of hooks w/ notmuch
2023-06-23 11:45 Usage of hooks w/ notmuch Jan Detke
@ 2023-06-23 16:42 ` David Bremner
0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2023-06-23 16:42 UTC (permalink / raw)
To: Jan Detke, notmuch
Jan Detke <jandetke@outlook.com> writes:
> I got a problem using hooks with notmuch (Version 0.37-3). I specified
> the hook directory under [database] in my notmuch config. The script
> (post-new.sh) is executable and works when invoked manually in the
> terminal, but it does not get executed after invoking notmuch
> new. There is no additional output given in the terminal.
You need to follow the naming in notmuch-hooks(5) exactly, so
<hook_dir>/post-new rather than <hook-dir>/post-new.sh
d
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-23 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-23 11:45 Usage of hooks w/ notmuch Jan Detke
2023-06-23 16:42 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).