unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* v2 support flexible database location
@ 2021-03-04 13:31 David Bremner
  2021-03-04 13:31 ` [PATCH 01/22] test/setup: add check for config exists, but no database David Bremner
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: David Bremner @ 2021-03-04 13:31 UTC (permalink / raw)
  To: notmuch

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 <<EOF > 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
+

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2021-03-04 13:33 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 13:31 v2 support flexible database location David Bremner
2021-03-04 13:31 ` [PATCH 01/22] test/setup: add check for config exists, but no database David Bremner
2021-03-04 13:31 ` [PATCH 02/22] lib: publish API for notmuch_database_reopen David Bremner
2021-03-04 13:31 ` [PATCH 03/22] lib: save path of xapian database in notmuch struct David Bremner
2021-03-04 13:31 ` [PATCH 04/22] lib: support reopening databases for write access David Bremner
2021-03-04 13:31 ` [PATCH 05/22] CLI/show: complete conversion to new configuration framework David Bremner
2021-03-04 13:31 ` [PATCH 06/22] lib/open: support NOTMUCH_DATABASE environment variable David Bremner
2021-03-04 13:31 ` [PATCH 07/22] lib/open: allocate notmuch_t struct early David Bremner
2021-03-04 13:31 ` [PATCH 08/22] lib: remove "path" from notmuch struct David Bremner
2021-03-04 13:31 ` [PATCH 09/22] lib/open: factor out library initialization David Bremner
2021-03-04 13:31 ` [PATCH 10/22] lib/open: reuse directory checks from n_d_c_with_config David Bremner
2021-03-04 13:31 ` [PATCH 11/22] lib/open: factor out the second half of n_d_open_with_config David Bremner
2021-03-04 13:31 ` [PATCH 12/22] lib/open: use _finish_open in n_d_create_with_config David Bremner
2021-03-04 13:31 ` [PATCH 13/22] lib/open: Use check for existing database by trial opening David Bremner
2021-03-04 13:31 ` [PATCH 14/22] support splitting mail from database location David Bremner
2021-03-04 13:31 ` [PATCH 15/22] lib/open: check for split configuration when creating database David Bremner
2021-03-04 13:31 ` [PATCH 16/22] CLI/new: support split database and mail location David Bremner
2021-03-04 13:31 ` [PATCH 17/22] lib/open: support XDG_DATA_HOME as a fallback database location David Bremner
2021-03-04 13:31 ` [PATCH 18/22] CLI/insert: support split database and mail root David Bremner
2021-03-04 13:31 ` [PATCH 19/22] lib/compact: enable split config David Bremner
2021-03-04 13:31 ` [PATCH 20/22] lib/open: fix hook directory calculation in split configuration David Bremner
2021-03-04 13:31 ` [PATCH 21/22] lib/config: add configuration variable for backup directory David Bremner
2021-03-04 13:31 ` [PATCH 22/22] CLI/new: use " David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).