From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GPIeCVm7eGHfNAAAgWs5BA (envelope-from ) for ; Wed, 27 Oct 2021 04:37:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kJzEBFm7eGEZWwAAB5/wlQ (envelope-from ) for ; Wed, 27 Oct 2021 02:37:13 +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 D1EF028FE1 for ; Wed, 27 Oct 2021 04:37:12 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5CEBF1F575; Tue, 26 Oct 2021 22:37:05 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 578111F574 for ; Tue, 26 Oct 2021 22:36:59 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 007765FC42; Tue, 26 Oct 2021 22:36:58 -0400 (EDT) Received: (nullmailer pid 3535977 invoked by uid 1000); Wed, 27 Oct 2021 02:36:57 -0000 From: David Bremner To: David Bremner , notmuch@notmuchmail.org Subject: WIP fix split-config for notmuch-python2 Date: Tue, 26 Oct 2021 23:36:51 -0300 Message-Id: <20211027023653.3535874-1-david@tethera.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211026021131.3162922-1-david@tethera.net> References: <20211026021131.3162922-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 22MG3R35NIYW6XBTLXJJCGVXBBORGIC4 X-Message-ID-Hash: 22MG3R35NIYW6XBTLXJJCGVXBBORGIC4 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=1635302232; 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=26f+2Wc4sxfYZY+dsNfLASQX6neH2jdSkalUUN7jKd0=; b=gPshG6/Mr3J6QvV4dgbEmTxEn9nLJ65Edah7+pmi3QGU3xI0NNynI+8ubbvrncFKUcshjc 9n94pAfL2HwksIFbcSBXL7ehNTYgj4WxovRLODBARgn5CZU5ldsk3krvXWOS1hJbA3DLZ6 av5gbWn8Z3Xlux+KjKA3A95nfdcN5sy8xwSBKyke+A/zr2g5eGXNeCasXIh67vgeQIVLVe xGVoMfwiQNK6h8Qp47I58ZFSS0hl2cpiv5lPzr8Omst22SmAD7j6SYmbiEFOQ2Wq9GFdnE p2k7UaEll9/gMrfTRuZo4T4BkfO6y38iInFTa5L+5YecHZYYAaOx8XKZjzCENQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635302232; a=rsa-sha256; cv=none; b=Uz0Mpq4tfikV5i9dl0cyD81ehw+50ufSY94HNhtekwzX1CMle44Tn+g2Yb/M1OcR3qx2dt qUVp3kCBX03f0XsqKhgFFE+ZLw6/e4dz1jx0PVc9SDFZK2b5BOhjV/FNnFsl92SeytN2SI N/2kK4hvyhdR8oDLQD7ltSPQ2Uk43ek9B4TMQq+iqxBhSolkFUyK5yyEHw6Va5g8g2OGen HQGCQ1uIaGkiNc+Y1/A85cKF7faCZCTSxDJSL6EVZo10O2ebrLg4d/Wk96+HfUxz7Ml+uu SLeioobx7lfBvbJP5OdXSjeUuGbs+4yEiP5Za2guQJLJqsuQQxk9BqlfqvWOjg== 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: D1EF028FE1 X-Spam-Score: -1.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: l/G06eElfW+p Posting these proof-of-concept patches because I want to go back and look carefully at some of the API subtleties that arise, mainly the question of what happens if the user passes a database_path, and the library finds a config file which conflicts with that path. Currently the config file wins, which doesn't seem quite right, but might or might not be easy to fix. Also I note that fixing the bug with split configurations for _one_ of the python frameworks isn't handled really well by the tests in a loop of id:20211026021131.3162922-1-david@tethera.net I guess a final question is if we should even bother fixing split configs for the old python bindings? It is a new feature, so in a sense it's reasonable not provide it in the deprecated bindings.