From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CAilLFF1vGGe0gAAgWs5BA (envelope-from ) for ; Fri, 17 Dec 2021 12:32:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aENyKFF1vGEaWgAA1q6Kng (envelope-from ) for ; Fri, 17 Dec 2021 11:32:33 +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 634B8638A for ; Fri, 17 Dec 2021 12:32:33 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 02505297E9; Fri, 17 Dec 2021 06:32:29 -0500 (EST) Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by mail.notmuchmail.org (Postfix) with ESMTPS id 18397297D7 for ; Fri, 17 Dec 2021 06:32:26 -0500 (EST) Received: by mail-wr1-x434.google.com with SMTP id t18so3385017wrg.11 for ; Fri, 17 Dec 2021 03:32:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=4bXRgchqXwRbH/vQTc7dRJIL6icyxiCMNY3XK3Q70O4=; b=SpPEqIjXRaAi5QomNNnTAQBwZpXdCLPdq9N9oYfC/ePjVNiVP5kH3j0Q0a8K5VKg33 kjZJ+Al9TO+lPOkHJAKRCt88D9BhslLXs9JHGhFleEp9ieqv3zoYsIQnL7DSnCF3EfFH IfzwVek7UlNGdwbRHStMPEPeeXGYsr5yGYSzh0vDjAZqJ/4UAuHUzSKtzCvCQcqwi/x4 KJBO3Y3sqpl5bOOKScoujM54EzEYIfzTiVSN1FwUgSOVUR5i4h1HcfmZBTr+jiY4XTgW lfvVmP4oB2twZJVt0jL4p5b8z/8YLCDr18tA6QiY7xpmIvSi4vwvdXomkX6YQ/Hy6b9L P9sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=4bXRgchqXwRbH/vQTc7dRJIL6icyxiCMNY3XK3Q70O4=; b=oin5nRMn3J3lqZP8XSdi3qioDh54oil1fE0qYYA9u6aAOev72CASOTrhpPo67yXKzD vD+83ZvxQE3Kvu/8B42qdZvQe7NqMR14knvXqUiHfWuFD5L5FvVrxVmc54Psat1DPxgK MTAOLMRv+cDdYS+wqRglklgR1U2b30sOjBAUgqTP0inM/7eXoR9VPx2TF37yGlD8RHRP KeiXlWYHM1anhgyuKp/tZt3tUBFhH9ifkXVrlqe1kfNs42n15o2mqXazkoPVlQMsAIww cjuTdj6f95xHb7UgQKyjKSel2kiZVbi6BsTMtDZjNcJr31adrBuViztbjtbsetFJyKMu dFQw== X-Gm-Message-State: AOAM530ZYntgUyCbBbc7Xa/1oUtcvXuTIXHi2UKD0TE+Bf06ec4XDZDT GFDRaIJrj32v7FPF3tV5r3/ZTPena5c= X-Google-Smtp-Source: ABdhPJwtS6L5fAqjEnUnFVKzLRYspULUXh4vhgikBkm+DPmbO1Kp9qbJzZ23zoCcY93zaqibwbW+BQ== X-Received: by 2002:adf:e545:: with SMTP id z5mr383399wrm.211.1639740744376; Fri, 17 Dec 2021 03:32:24 -0800 (PST) Received: from localhost (cpc152997-sgyl45-2-0-cust468.18-2.cable.virginm.net. [82.32.155.213]) by smtp.gmail.com with ESMTPSA id l26sm6780435wms.15.2021.12.17.03.32.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 03:32:24 -0800 (PST) From: Al Haji-Ali To: notmuch@notmuchmail.org Subject: Accessing arguments in hooks Date: Fri, 17 Dec 2021 11:32:17 +0000 Message-ID: <8735mrsbzy.fsf@gmail.com> MIME-Version: 1.0 Message-ID-Hash: XKLNCZWNHUVUSDVMEWQNHUDBOJOJ7EKE X-Message-ID-Hash: XKLNCZWNHUVUSDVMEWQNHUDBOJOJ7EKE X-MailFrom: abdo.haji.ali@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 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=1639740753; 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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=cKe8MJ+L7Nh2mNMupbp2d5dmCG+fDtLkaC06oTwfiZE=; b=Ab6o76ASvd30/tgPD4KCohZ99X0RT0ULd5uX7/kDohlFqKGQxtmz7NKn+yccd9Rv8LewfK o83PInW/zgPGGMXAINMZ2KhSeDIugN/Gi08x6xlDgLkCrnAhUFxmiAjYJtq7HV0YWzKoZB jf0VwjxmQCf1wQ7hwR2bUtMAu37Rg1PRCKOGEPriEwottfqE3kjZKHBF+5vd6rE9jkUaFJ /tbiqSb9/oLXrotMLbCxzPHNdJiE6BhS1zNmByKYfsL6iSlxYTHWbQRu6payjZ+A2Twoze Ruah/+vn1FJ+2SXv7uK3aJiZOzf1X3CwlpbWerZxGDTPa0pHg3v62snCfENBZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639740753; a=rsa-sha256; cv=none; b=GFTyvWirIqDOfcePeLNYejZV1GdwzczXKOcEWaJD1fRai8irxOQFd8Vny6vmRjJ9y6tG9P Gl45ZJRyx25ALxNauWoCbNvOE3HAgseiiUFWFkwMNdDfFywZnbQxFDGhU0MVm+OWuTnRwy xhqLS1NyPSmbW8aPRYMBtXljC/H5CeCeKjX4gI3gpecsXDh++DBSWwG7ePmdlE+rMEYOlr aNWMJmde7vXN/UrpCcBFn16bX+wKeWkDiuDn+bkVsECX67z/hDrb+SHixwfU8bBJGBzQAv 5s6vqCHHVSe3mEGLgcYQIu6DchHg+7HKBeqBB4oR+XwJdRdv7yE5C3L/XYNTzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=SpPEqIjX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -1.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=SpPEqIjX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 634B8638A X-Spam-Score: -1.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: Y/gq8M4Soxrx 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, -- Al