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 omKfES3+eWFeBQAAgWs5BA (envelope-from ) for ; Thu, 28 Oct 2021 03:34:37 +0200 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 8H3VDC3+eWHtKwAAbx9fmQ (envelope-from ) for ; Thu, 28 Oct 2021 01:34:37 +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 EE4C0C277 for ; Thu, 28 Oct 2021 03:34:36 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 7ECA31F75D; Wed, 27 Oct 2021 21:34:31 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 8CE0A1F73C for ; Wed, 27 Oct 2021 21:34:26 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 7BF845FC42; Wed, 27 Oct 2021 21:34:26 -0400 (EDT) Received: (nullmailer pid 3999828 invoked by uid 1000); Thu, 28 Oct 2021 01:34:25 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Fix overriding database path when opening a different file. Date: Wed, 27 Oct 2021 22:34:16 -0300 Message-Id: <20211028013419.3996019-1-david@tethera.net> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Message-ID-Hash: PTBZAVFPLT7LLIP5DEV4EID6Z5AWUFPH X-Message-ID-Hash: PTBZAVFPLT7LLIP5DEV4EID6Z5AWUFPH 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635384877; 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; bh=4oufpmFXs7vFK6fJpLpGMWXRZw463ibOAmkwxc35F5U=; b=WXpx56MUIPdOhCTu8aMzYo01W6faavIRMKgce7HMKjHM6sEl44ENCEBaAKOG7dwoqHN2uF FB3TQbAOiQcFWADF4cp5H03bIQr5m94H+M8qAIA1uvg2cgaei68Sbtzdwiz49vVSN5O1aC daWMHXKHnYHiBMBIxue8BLfFdoCez45V4AJSBQbHyDTLjjdA6TlbuPJpSYY6nn5smjd8hX AhZW2u9QVoSIPdrslCaWEenS7CxoJKVkllzP/l2hdANupBPNaZNMKJ78ocSJ7a/ueUx6oh ciKSXLwosJDjGXdIb7iQWlo3ECUy9ETrl/45Rh7JP1s7gO1Ws3PvzdtiRl84rQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635384877; a=rsa-sha256; cv=none; b=PW/V8xmrWSoBRG/uVJP6AmWOQB8dIhLVvq0jw2Id/W83M2ThQD/yMnsmXpFPx8y25bD+DR CV8ChXMJiPt7vJgJpPXE1B3WX143JcTdOEqWPk1MvIGjgwHurGXdCajRszRXEM//cPDjtb o+PrBXHZyV0kfks+LbBAqpJuPV6YLD9e2zmg8m2IopB0XGCeP5upDbtXpUmUobRmuNzl50 ooD0neK3g5e0F80QUqBgY6H8JYDUbWvF8e9l/CbeBZb1NPvV9mLjIY8uvckeCv4XFKblZJ bMYiQeDXpKOqPhRpRhw7mZrxTYAM6lMFZwWmGn//H5zh3FVX25CQ/soIY4Dnnw== 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: -1.15 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: EE4C0C277 X-Spam-Score: -1.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4XyIZK1zzFSC As mentioned in [1], currently libnotmuch gets a bit confused if one database path is specified as a parameter and a different one in config. This series makes that more precise with a test and fixes the bug by keeping a bit (literally) of information in the notmuch_database_t object. It needs to be applied on top of the series at [2], since it re-uses a bit of the test infrastructure. [1]: id:20211027023653.3535874-1-david@tethera.net [2]: id:20211023132238.1864400-2-david@tethera.net