unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "Ralph Seichter" <ralph@ml.seichter.de>
To: <notmuch@notmuchmail.org>
Subject: When exactly is the post-insert hook called?
Date: Thu, 03 Oct 2024 19:35:22 +0200	[thread overview]
Message-ID: <D4MCP37YDX1F.16NCBOEEIYZ9K@ml.seichter.de> (raw)
In-Reply-To: <87plorl7vq.fsf@tethera.net>

I have been using a post-new hook for ages without problems, and today I
got curious about post-insert. I set up ~/.maildir/.notmuch/hooks/post-insert
like I previously did with post-new. Whenever invoked manually, post-insert
notes an event in a log file.

The issue is that I don't see post-insert ever being called by notmuch.
Should not both post-new and post-insert be called when "notmuch new" is
invoked after new mail has arrived?

The manual page notmuch-hooks(5) states:

  The hook will not be run if there have been any errors during the
  message delivery; what is regarded as successful delivery depends on
  the --keep option.

What is the --keep option and where is it documented? I have not yet
been able find a source, so I am asking here.

-Ralph

  reply	other threads:[~2024-10-03 17:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-10 20:33 [PATCH] Add --emit-message-id flag to notmuch-insert Brennan Vincent
2024-09-11 15:00 ` [PATCH v2] " Brennan Vincent
2024-09-25 21:51   ` David Bremner
2024-10-03 17:35     ` Ralph Seichter [this message]
2024-10-03 17:59       ` When exactly is the post-insert hook called? Ralph Seichter
2024-09-11 16:09 ` [PATCH] emacs: Introduce notmuch-draftify-buffer command Brennan Vincent
2024-09-25 22:09   ` David Bremner
2024-09-29  0:36     ` Brennan Vincent
2024-09-26 20:25 ` [PATCH v3] Add --emit-message-id flag to notmuch-insert Brennan Vincent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D4MCP37YDX1F.16NCBOEEIYZ9K@ml.seichter.de \
    --to=ralph@ml.seichter.de \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).