unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: "Michael J Gruber" <git@grubix.eu>,
	"Uwe Kleine-König" <uwe@kleine-koenig.org>,
	notmuch@notmuchmail.org
Subject: Re: setting NOTMUCH_CONFIG in hooks
Date: Sat, 28 Aug 2021 07:49:18 -0700	[thread overview]
Message-ID: <87mtp11v69.fsf@tethera.net> (raw)
In-Reply-To: <161952862603.12126.11881406139322293484.git@grubix.eu>

Michael J Gruber <git@grubix.eu> writes:

>
> So, either notmuch should export `NOTMUCH_CONFIG` into the environment
> which it runs the hooks in (if overriden by `--config`), or, as Uwe
> suggests, and in the light of other variables like `NOTMUCH_PROFILE`,
> `--config` could be deprecated so that users automatically do "the right
> thing". Seems to be more future proof.
>

The --config argument is pretty useful (for me) when debugging, so I
don't support its removal (at least that's what we usually mean by
deprecation, a precursor to removal).

Until someone (TM) is inspired to work through what variables to
propagate, and how to populate them (whether it suffices just to
preserve the environment, or whether values have to be synthesised), we
could certainly update the docs for --config to direct people to use
environment vars if they need propagation.

      reply	other threads:[~2021-08-28 14:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03  6:24 setting NOTMUCH_CONFIG in hooks Uwe Kleine-König
2020-06-03 14:12 ` David Bremner
2021-04-27 12:34 ` David Bremner
2021-04-27 13:03   ` Michael J Gruber
2021-08-28 14:49     ` David Bremner [this message]

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=87mtp11v69.fsf@tethera.net \
    --to=david@tethera.net \
    --cc=git@grubix.eu \
    --cc=notmuch@notmuchmail.org \
    --cc=uwe@kleine-koenig.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).