Re: setting NOTMUCH_CONFIG in hooks

Subject: Re: setting NOTMUCH_CONFIG in hooks

Date: Tue, 27 Apr 2021 09:34:30 -0300

To: Uwe Kleine-König, notmuch@notmuchmail.org

Cc:

From: David Bremner


Uwe Kleine-König <uwe@kleine-koenig.org> writes:

> Hello,
>
> when I run
>
> 	notmuch --config=$HOME/.notmuch-config-work new
>
> NOTMUCH_CONFIG isn't set when the hooks are running. This would however
> be quite useful such that e.g. afew uses the right database. Of course I
> could do
>
> 	NOTMUCH_CONFIG=$HOME/.notmuch-config-work notmuch new
>
> instead, but then it would be consequent to drop the --config option
> from notmuch completely :-)
>

It's not the same thing, but seems to relate to your use case. There is
some new and mostly untested support for a "NOTMUCH_PROFILE" environment
variable that might help. Or it might have the same issue with
propagation to hooks. See notmuch-config(1) in master / 0.32~rc1.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: