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 ms11 with LMTPS id sO6wI/qIIGDGXwAA0tVLHw (envelope-from ) for ; Mon, 08 Feb 2021 00:42:34 +0000 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 uOdFH/qIIGDFawAAbx9fmQ (envelope-from ) for ; Mon, 08 Feb 2021 00:42:34 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 89CCF94029C for ; Mon, 8 Feb 2021 00:42:33 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 112A920622; Sun, 7 Feb 2021 19:41:47 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 669F01FE25 for ; Sun, 7 Feb 2021 19:41:28 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id 5FF89606DB; Sun, 7 Feb 2021 19:41:28 -0500 (EST) Received: (nullmailer pid 1193267 invoked by uid 1000); Mon, 08 Feb 2021 00:41:15 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 08/23] support splitting mail from database location. Date: Sun, 7 Feb 2021 20:40:54 -0400 Message-Id: <20210208004109.1192719-9-david@tethera.net> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210208004109.1192719-1-david@tethera.net> References: <20210208004109.1192719-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: M2GHGTB3XL3KPJCB5QZ6ZDR3MPJC7J3O X-Message-ID-Hash: M2GHGTB3XL3KPJCB5QZ6ZDR3MPJC7J3O 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; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.95 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 89CCF94029C X-Spam-Score: -0.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: CIOxT6xExH2t Introduce a new configuration value for the mail root, and use it in preference to the database.path (which previously implied the mail was also in this location. Multiple changes to the CLI and third party clients will be needed to work in this split configuration. --- test/T055-path-config.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh index 54c337ef..1da0e9fe 100755 --- a/test/T055-path-config.sh +++ b/test/T055-path-config.sh @@ -27,10 +27,11 @@ split_config () { DATABASE_PATH=$dir } -add_email_corpus + for config in traditional split+prefix; do - backup_database + # start each set of tests with a known set of messages + add_email_corpus case $config in traditional) @@ -54,7 +55,6 @@ for config in traditional split+prefix; do test_expect_equal "$output" '52' restore_config - restore_database done test_done -- 2.30.0