From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QJsVADgBlmJlGQEAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 13:51:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kNCVOzcBlmIK7gAAauVa8A (envelope-from ) for ; Tue, 31 May 2022 13:51:19 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 8153612ED8 for ; Tue, 31 May 2022 13:51:19 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B0B215F77A; Tue, 31 May 2022 11:51:11 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 5020E5F407 for ; Tue, 31 May 2022 11:51:08 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id B408D5FC01; Tue, 31 May 2022 07:51:07 -0400 (EDT) Received: (nullmailer pid 2446074 invoked by uid 1000); Tue, 31 May 2022 11:51:04 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 3/3] CLI: document handling of --config for external commands Date: Tue, 31 May 2022 08:51:00 -0300 Message-Id: <20220531115100.2446050-3-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220531115100.2446050-1-david@tethera.net> References: <20220531115100.2446050-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: NLOOBXRFYDRXGXM2SXOGAVQQLPX3J4Z5 X-Message-ID-Hash: NLOOBXRFYDRXGXM2SXOGAVQQLPX3J4Z5 X-MailFrom: bremner@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-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653997879; 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=339etCUEGQRARg/nBeTTIGgr7GU1FsvfPB3n8ckVmc4=; b=d3xhpWc/NDXXV45t2UGO95uJtA8NkdFsOc9f9L9daOUkdveuLJTSNa5RwRQDc6BJCjsO5i ivzIGR9FsYkE5VGKmIwtR4k7z/bAM5yYr41QhWn4dzqK4N6JdiYB23R1zUdn5afHCCVOAW Fahmv2Es6LbAuG7lLukEcN3EOPc1Z9ld8RzX75ogIfin3SnZE56/4qfHWObDSuZgNd3xMu D2An61NNEtXtXSccMLFgUXYZnv4OO6sGwQTYLs+kyHPROp6c4SaCiTfXFIHaOBt9EyQwx6 B54oTIAyeYlVS/tXo5dTnncFxnzvV5R2cOwg3Jh+6YoBLrIp2U1wDMr9YC2aGg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653997879; a=rsa-sha256; cv=none; b=FSOqihe+PTeFXdNH7skJd0qth6EaQIU/yZxlTajSa2oGvIGGoFm4ek/7QKt6j00yz/dLrn bVlmUT0NSc4tnnyOq/MEbtJz5nD6T8lVIptypdW/jiWYwdDJw4F250RbSUm75B0hyXVrz7 BpWM/QAuDlQdXB+3XB5g0o0S4d9x3bAmbEwVjgkfNJZzpmr8IBgPaX5sVhlIVNJT+uKpX3 +9hcTM10TN3DoHsT/VIgs7ybVUG5rooDux26gns0xot8H5GhrgvqYNEPwdJvx/92LDQEKb XPabjpopizUX8jhSlplXdJGCy5Y46Yu/8aGaKVTW76ppBhOlTCe/2zXG+WUIDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.25 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 8153612ED8 X-Spam-Score: -0.25 X-Migadu-Scanner: scn1.migadu.com X-TUID: HWpNNqgaJApo Create a section of the notmuch(1) manpage to have some place to put this documentation. --- doc/man1/notmuch.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/man1/notmuch.rst b/doc/man1/notmuch.rst index c6ee3036..e0892e01 100644 --- a/doc/man1/notmuch.rst +++ b/doc/man1/notmuch.rst @@ -185,6 +185,14 @@ of notmuch. If set to a non-empty value, the notmuch library will print (to stderr) Xapian queries it constructs. +EXTERNAL COMMANDS +================= + +When given a subcommand `foo` not recognized as built-in, notmuch will +try to run the command (e.g. script) `notmuch-foo` in the user's +path. The :envvar:`NOTMUCH_CONFIG` will be set according to +:option:`--config`, if the latter is present. + SEE ALSO ======== -- 2.35.2