From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EG9eGD/hQGAbLQAA0tVLHw (envelope-from ) for ; Thu, 04 Mar 2021 13:31:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YAcWFD/hQGC7VAAAB5/wlQ (envelope-from ) for ; Thu, 04 Mar 2021 13:31:43 +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 944E422BA4 for ; Thu, 4 Mar 2021 14:31:42 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4A21D26C4A; Thu, 4 Mar 2021 08:31:33 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 85C421FBBC for ; Thu, 4 Mar 2021 08:31:29 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id 6AF175FA96; Thu, 4 Mar 2021 08:31:29 -0500 (EST) Received: (nullmailer pid 4053539 invoked by uid 1000); Thu, 04 Mar 2021 13:31:28 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: v2 support flexible database location Date: Thu, 4 Mar 2021 09:31:03 -0400 Message-Id: <20210304133125.4050229-1-david@tethera.net> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Message-ID-Hash: P5QE45K3KTR2E4CZW5V7GBA3QT2FXXCJ X-Message-ID-Hash: P5QE45K3KTR2E4CZW5V7GBA3QT2FXXCJ 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614864702; 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-unsubscribe:list-subscribe:list-post; bh=129KlKZuXSCOho6dTY06s/d3Li7AkR3libtvpYg/ORs=; b=A/+8GTBbc5f1Emm07FJexCoNIFi8Pai0Hf6hHKR6fD7WM1Y5dj7YXYgR5ToyWAzinmC/aU gPC5wVHGpPi5mLlMaIzq8K9+QXKq89ItrFO2bZQrzJedI9O31b2JrJy5ZA0V6LHmq1HHQy q2n78AAtSjfWUowszkAmlJKf3HsJ6FH5m72lq2SETVGCAP4N6UbB1Z9CWat0do7t2jFOxO mSIO1eDHLJtV4p5BaOQ0DBksjYovB2V4k044GOOdgqhhdrKMI3nyNNA0Nh0Pkto1eC3257 ViJg/6YW4Fbg5uMJIl4ZI633WHFRbpkj+D+c1RDd6tJD+VkwKJat86tIf28RSw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614864702; a=rsa-sha256; cv=none; b=EKb0OA1RBFyBx1xad6bJ4Mm2efoLXNmgBFYOa5jOUjCB6ujXEKzlEIi682DG8ruclSqPKg xLRJfc1Ouljk1ChUg7a+TbDLW6Ig5/Ozlm26mMoIvtKUooM8HSyzFnHMosS//0cDeJvXTR 6DuRdvzXNRd/Xg7u5e67LflEdRe4F0PnWcn7tNMKU3bs9chk6B1J4xMH06wiTVNhBwuEAz Vh3otQ9gLebK9oIkfxMiZLNzar+X1GTfmdyv0sFJ/bInkL2fvVFp7lsm2sJKyxogIpMhpX rxvkACSSvxAMtZOYxSh12bRk78nORFJ+SP/Ys3Q6ezmZyzF+9ZSRSJuLYuE8hQ== 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.03 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: 944E422BA4 X-Spam-Score: -1.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: WFpapbmNKdsU This obsoletes [1]. It is mainly a rebase against master, but also adds one test (see below). I have been running this code in production for a few weeks now, although without using any of the fancy new features. [1]: id:20210208004109.1192719-1-david@tethera.net diff --git a/test/T040-setup.sh b/test/T040-setup.sh index 1223ebf7..5eb281d7 100755 --- a/test/T040-setup.sh +++ b/test/T040-setup.sh @@ -34,4 +34,20 @@ built_with.compact=something built_with.field_processor=something built_with.retry_lock=something" +test_begin_subtest "notmuch with a config but without a database suggests notmuch new" +notmuch 2>&1 | notmuch_dir_sanitize > OUTPUT +cat < EXPECTED +Notmuch is configured, but there's not yet a database at + + MAIL_DIR/.notmuch + +You probably want to run "notmuch new" now to create that database. + +Note that the first run of "notmuch new" can take a very long time +and that the resulting database will use roughly the same amount of +storage space as the email being indexed. + +EOF +test_expect_equal_file EXPECTED OUTPUT +