From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8MQwKXxNKmEHDgAAgWs5BA (envelope-from ) for ; Sat, 28 Aug 2021 16:51:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wCXSJHxNKmHUVwAAB5/wlQ (envelope-from ) for ; Sat, 28 Aug 2021 14:51:40 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B4599195A6 for ; Sat, 28 Aug 2021 16:51:39 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A2C681FE5A; Sat, 28 Aug 2021 10:51:35 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id BAEC11FCE9 for ; Sat, 28 Aug 2021 10:51:32 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 4A6B05FD5C; Sat, 28 Aug 2021 10:51:32 -0400 (EDT) Received: (nullmailer pid 3563907 invoked by uid 1000); Sat, 28 Aug 2021 14:49:18 -0000 From: David Bremner To: Michael J Gruber , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , notmuch@notmuchmail.org Subject: Re: setting NOTMUCH_CONFIG in hooks In-Reply-To: <161952862603.12126.11881406139322293484.git@grubix.eu> References: <8baa58c3-7ab9-ec03-1bbd-28aa5be838f2@kleine-koenig.org> <87fszbsy7d.fsf@tethera.net> <161952862603.12126.11881406139322293484.git@grubix.eu> Date: Sat, 28 Aug 2021 07:49:18 -0700 Message-ID: <87mtp11v69.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 2JE3GM7FJ3DXOFJ7JI5F7SCWUEYP5GM2 X-Message-ID-Hash: 2JE3GM7FJ3DXOFJ7JI5F7SCWUEYP5GM2 X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630162300; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=x5iaGp3/OQMjVG9957dbeC+8B/R1tTWhNi6YYoVPvJE=; b=B2ZkGJ+QCjIUlE9akzda1UB1V/hUlpXybdY5FrvXmL7TrNZyrR2jviqMHZMmlQm0gVlVjQ 2PyNjxqI6WqT2p9fJknoMWpbgvNLXx3rirlC60mj3BGpNv7uYtJc6vGl4P6iGQc1VciKgN MKdsLeKwdcRQiMNjBnS56Ir9ROFUx4Zpx/4gaUELyLxLRTt9gInwhtdXlChSsvseVxRxbt MGu+f4O6FyjbuK2Xun+AIrm87/qBqzX1jXYbLoedJQ3Ac9qCbof4lELIPq9KhxXoMKrY4f OTFOja0yaBCxh8w4Mw0FH1Scgu6CenFGBfPGpKUkDBOdodU+8g23TJZ3J7J+RA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630162300; a=rsa-sha256; cv=none; b=CQyCDVtRuIEkTh94ehQ3IasAw2UfHjpEv9hL8NgXATOuoOYGLoQIzcaE+vTGY0+KJB3wHs Ay1N5di3fEBEu6WOggnkQt3r8yhW36n9Usv53j1M/Q5rt87K7/cVA5U4Atjgc9pt4b1LW9 FjxZqu5G1Jo5kkO7GcRdzzm8SiPKnaK9OYUQzkQ9BVuN4miGCZmKThSpvMOWjsW0xuemo3 GhLD4/nvf8sFQ2505z/NrmRUHPsg98knum0RNwgbKYmUpTWscmNOCtrPSa9GOFyFmRce7y DdvDBQyQjWY/C/mP7CZ73VWC0+H7wn3mWt+ylGpgpVKXzbWPqo3fxu2b4g2ckw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.97 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: B4599195A6 X-Spam-Score: -1.97 X-Migadu-Scanner: scn0.migadu.com X-TUID: yAj+faR/Pc2g Michael J Gruber 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.