From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QMXENX2OvGFALAEAgWs5BA (envelope-from ) for ; Fri, 17 Dec 2021 14:19:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UHtdMX2OvGEoOwAAbx9fmQ (envelope-from ) for ; Fri, 17 Dec 2021 13:19:57 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 5606491EC for ; Fri, 17 Dec 2021 14:19:57 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 826DD297E9; Fri, 17 Dec 2021 08:19:53 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 9559A297E8 for ; Fri, 17 Dec 2021 08:19:50 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id D59BF5FC42; Fri, 17 Dec 2021 08:19:49 -0500 (EST) Received: (nullmailer pid 3516712 invoked by uid 1000); Fri, 17 Dec 2021 13:19:48 -0000 From: David Bremner To: Al Haji-Ali , notmuch@notmuchmail.org Subject: Re: Accessing arguments in hooks In-Reply-To: <8735mrsbzy.fsf@gmail.com> References: <8735mrsbzy.fsf@gmail.com> Date: Fri, 17 Dec 2021 09:19:48 -0400 Message-ID: <87bl1fnzbf.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: V26JZ7IZV6PFVKTC5AK6575K5FC2DGA2 X-Message-ID-Hash: V26JZ7IZV6PFVKTC5AK6575K5FC2DGA2 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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: FR ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639747197; 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-owner:list-unsubscribe:list-subscribe:list-post; bh=BzqvAvPEYO+AhNhedQOOrpPgnR8t/9KtdYzlfhj0090=; b=tVWtoIcMUbeXIlucq1ilCAeFQDRihDhl604Db4imzcOIT2k064wIyJS87gEBusJpCNGAd6 2/sSTfQXO+IzdX/rvuIsJimunJsBNn0dgPTUNZoae7GPGIyc5pSaZHOFNKUDEZbUGk/rXO 4lgfMmN4YwSycGMaqQ61AIsfbv+a6yoynAnHQCg7SX97at9OX4MHSepgtLkFz8MEdlrCRc PRhcukg3cpMm0JQdf1z7+7EpTh2B7FW219VcmcoV6fSxqGiZfZbEs5yQOOhnlQsE0E2poV H87gxbjY1sAHab+OuT6TQIPmtzJs6nPJawP3ZbnC3qgeJqduiTbn6yZx9lWD+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639747197; a=rsa-sha256; cv=none; b=rgriE7SWhPgvDTa8xBI1EmaMWfgHR/TC9SPUDvRQem4FiwP35i63700TXTJX9qKPq8fslD DEpKor+gwv440dh6Gv2q08T0p5DGSfZ0OBCHIb68nX2dI8VN4SfMHXw1hKjdEeqnUcY/Te XuFtBDbRTua2BuPEzL808yEEew/MHBPRO/+4w+Tq3I8wRSZJzM9FVElz4BG+q6X2CaY7j1 L9vhvwBi+hSQL/HQa/llsEG+aANg50oHMlct3UXaTfq4WcSYNsZHKQbujxH7tYRpJ8S9MY EerBWJ49Cz75WDGWmV3+cx4im72rbdw+PJJXC/MlGEL3GPEewMsmb+20konJEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.47 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 5606491EC X-Spam-Score: -2.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: pGJ8Lz9e3lZo Al Haji-Ali writes: > Hello, > > Is there a way to access the parameters of `notmuch new` in hooks? At > the moment I control the verbosity of my hooks by setting an > environment variable, but I think it would be nicer if I can get that > flag from arguments to `notmuch new` (like `--quiet` and `--verbose`). > > Thanks, That is currently not possible. I guess splatting all the arguments into an environment variable would not be that hard, but I'm not sure how many people would find useful. d