X-Envelope-From: notmuch-bounces@notmuchmail.org  Sat May  9 15:59:50 2026
Return-Path: <notmuch-bounces@notmuchmail.org>
X-Original-To: nmbug@yantan.tethera.net
Delivered-To: nmbug@yantan.tethera.net
Received: from yantan.tethera.net (localhost [127.0.0.1])
	by mail.notmuchmail.org (Postfix) with ESMTP id 64AC45F878;
	Sat,  9 May 2026 15:59:50 +0000 (UTC)
X-Greylist: delayed 396 seconds by postgrey-1.36 at yantan; Sat, 09 May 2026 15:59:48 UTC
Received: from mail.sindominio.net (mail.sindominio.net [IPv6:2a01:4f8:10b:1e2f::4])
	by mail.notmuchmail.org (Postfix) with ESMTPS id 0FCE35F5BE
	for <notmuch@notmuchmail.org>; Sat,  9 May 2026 15:59:48 +0000 (UTC)
Received: from [127.0.0.1] (localhost [127.0.0.1])
	 by lesnaus.sindominio.net with ESMTP id 0ADB912A45D3
	for <notmuch@notmuchmail.org>; Sat,  9 May 2026 17:53:11 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 lesnaus.sindominio.net 0ADB912A45D3
Authentication-Results: lesnaus.sindominio.net;
	dkim=pass (4096-bit key; unprotected) header.d=sindominio.net header.i=@sindominio.net header.b="Sccg9s33";
	dkim-atps=neutral
Received: from mail.sindominio.net ([127.0.0.1])
	by localhost (lesnaus.sindominio.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id KM0HGckKrHbW; Sat,  9 May 2026 17:53:09 +0200 (CEST)
Received: from [127.0.0.1] (localhost [127.0.0.1])
	 by lesnaus.sindominio.net with ESMTPSA id A095112A45D6;
	Sat,  9 May 2026 17:53:08 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 lesnaus.sindominio.net A095112A45D6
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sindominio.net;
	s=mail; t=1778341989;
	bh=s7z3FISg+A4kjTDBbouN0EA0H5zFq7AZZI1sL+YqCnI=;
	h=From:To:Cc:Subject:Date:From;
	b=Sccg9s3343mAIUGH9nzvzu8tl6/x76GJVQRU3VUn/qt9R+iT8aYliVyu5zP+EUjt4
	 E2L8r/KaV043XLHG49IwBHQhj8vqVmCbCH3IUalc02t54y/fnmRsfAE1nH4skmv3zN
	 wilMkc+qjxfuNEy5HG++oP42OkPvXO2ltA31p8oGhGWKQRpZZA3tLIBFHXDQQZO+Qh
	 aK6zOeEmzPpvchpuwwbcubwTLj+FAxzbLS9VQ/PoJplGMnetmctqrBh3SHSMZBRMyy
	 vGJExA0PlbG6ZkRcUZDlUuBSI3Enn8DwAFSGzg63xopju+OjV27CX1CyCls4CBn1wr
	 ocTsLdsN1q8SQ2O+Lz1V5u5UKSs5zUOSzOrBaeww5RppTaChTdLIb8ilx7R6ioISz6
	 YyRFbLCsjh3dV75pQUVCZ16Y1iVYKntbqOqSGDxmfOCYMXkSjm6JcvIOybS44Gf/Z5
	 CawxbWNx2si2XV3Dd/CKbAVVy1/t837ThQyclj4iqTA2TTcUB1Cdk33GALIeHExVVM
	 sxJPhdCJAymjhZ8Mub42rbOo2UEr8Prctdy9QiANsGqstFG4bKp0edLOi4wttpAgCK
	 yWtT70pu2luZbXk3ceAMvtbR75s0GtpycH0Gp1Xzwg4e5D4KlGLBGtwwA1RWwnNEua
	 AZm2NxgShWt+OadDK3WkxrAA=
From: inwit <inwit@sindominio.net>
To: notmuch@notmuchmail.org
Subject: [PATCH 0/3] cli: add --profile option
Date: Sat,  9 May 2026 17:49:51 +0200
Message-ID: <20260509155257.2477368-1-inwit@sindominio.net>
MIME-Version: 1.0
Message-ID-Hash: YIALGD6DHDIIWAKRIHU4W7AK7Y745PTS
X-Message-ID-Hash: YIALGD6DHDIIWAKRIHU4W7AK7Y745PTS
X-MailFrom: inwit@sindominio.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
CC: inwit <inwit@sindominio.net>
X-Mailman-Version: 3.3.3
Precedence: list
List-Id: "Use and development of the notmuch mail system." <notmuch.notmuchmail.org>
List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
List-Owner: <mailto:notmuch-owner@notmuchmail.org>
List-Post: <mailto:notmuch@notmuchmail.org>
List-Subscribe: <mailto:notmuch-join@notmuchmail.org>
List-Unsubscribe: <mailto:notmuch-leave@notmuchmail.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

The library has supported profile-based configuration resolution (via the
NOTMUCH_PROFILE environment variable) for some time. This series exposes that
functionality as a --profile=PROFILE cli flag, making it consistent with
--config (which overrides NOTMUCH_CONFIG).

The design follows the --config pattern: parsed once in main() before subcommand
dispatch, rather than added to notmuch_shared_options. This keeps it from
appearing in every subcommand's --help output and avoids redundant re-parsing.

Shell completion updates (completion/) not covered in this series (possible
follow-up).

inwit (3):
  cli: add --profile option
  doc: document --profile option
  test: add tests for --profile CLI option

 doc/man1/notmuch.rst     | 13 +++++++++---
 notmuch.c                | 21 ++++++++++++++-----
 test/T035-read-config.sh | 44 ++++++++++++++++++++++++++++++++++++++++
 test/T055-path-config.sh | 25 ++++++++++++++++++++++-
 4 files changed, 94 insertions(+), 9 deletions(-)

-- 
2.53.0

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org
