From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uC0FGjCv5mESUQEAgWs5BA (envelope-from ) for ; Tue, 18 Jan 2022 13:14:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sNFrFzCv5mFoJwEA9RJhRA (envelope-from ) for ; Tue, 18 Jan 2022 13:14:40 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 354E72D922 for ; Tue, 18 Jan 2022 13:14:40 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 92F5E5F6BE; Tue, 18 Jan 2022 12:14:35 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id EB66F5F5E1 for ; Tue, 18 Jan 2022 12:14:32 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id DF7B75FC01; Tue, 18 Jan 2022 07:14:31 -0500 (EST) Received: (nullmailer pid 2895473 invoked by uid 1000); Tue, 18 Jan 2022 12:14:30 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: [PATCH 1/3] CLI: stash pointer to database in sprinter structs In-Reply-To: <20220101120136.37988-2-david@tethera.net> References: <20220101120136.37988-1-david@tethera.net> <20220101120136.37988-2-david@tethera.net> Date: Tue, 18 Jan 2022 08:14:30 -0400 Message-ID: <87h7a1w89l.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: KWJTNDAU7LXSRH52SHJAVHYUT5QVABVF X-Message-ID-Hash: KWJTNDAU7LXSRH52SHJAVHYUT5QVABVF 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: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642508080; 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=qf3FtsWcI6w3xsg7Vv+zAgdYsiom8B1Qgr6Mq7Eri3c=; b=aTBL93IW/swtnkHzMjxZ+A7zxAEB7LP73EsY/kNyhrRa/4GNGBXEWBSLQ7rkfYywgiURWK 171yUx/+X7ejSjtf1ncsJSBFCWFBR2azxLqqbP4Fvhv5EIK5RS6ZbEW39sNsKeG539DdhT 48qEdNrIhBrtlcGyWl6l86lToW31CKjFxRc1KhdHTHw++dDqBv5xnUn3WkU+Yl0OxF1Nqn tZhv9+fNSIDiZgET69SxHh2yb5GHSclqx2nGHW8jH485AY8gIS/4jRPzccOFx/MMGRi/C3 7UMbmbs2WaOZEJ9hHNgQX4qsPG+SxS0rcX9sj49yW3/UlVDQJ4MnvsGugCtJpw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642508080; a=rsa-sha256; cv=none; b=kYoLLUJtZFtbYgRAngPO6iuByzSYVFeC0Dik6S03i9pC1V69TKy2v4AELynI9JuezAr7AY Un7snzjfXvl02CTgrvd9/CCZdFIuhChcoBYsTig3BzHHctXeTRKS7IV5cUKAe6ca0G3l8M qjG8WsgcEdBj3bDgJoujwv4LaLQ6gKjqkfxp8TcYcyEjqF95zGfB/d5aeiUj9ChGwqYsyL qHbc914VGqzsraWPGpXBrd2QlLOr0uoN95WWJVkxFxgdJQf8PlTF8SO8Il56YcDzZ+NKY6 tsIT7AHSLiccb+xE3pdrFy1R5Vz7lCxTLoN86qqVShOE1ipImg55MS4fj8KHgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.32 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 354E72D922 X-Spam-Score: -2.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: +qy4OFEpvmKu David Bremner writes: > We already use an allocated (and presumably open) database as a talloc > context. Keeping the pointer in the allocated struct will allow us to > e.g. interrogate the configuration in a sprinter function without > threading the database all the way through the various levels of function. Series applied to master. d