This fixes the bug id:87bl9lx864.fsf@kisara.moe
---
lib/open.cc | 4 ++++
test/T055-path-config.sh | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/open.cc b/lib/open.cc
index 7b95c5b1..280ffee3 100644
--- a/lib/open.cc
+++ b/lib/open.cc
@@ -220,6 +220,10 @@ _choose_database_path (void *ctx,
}
}
+ if (! *database_path) {
+ *database_path = getenv ("MAILDIR");
+ }
+
if (! *database_path) {
notmuch_status_t status;
diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh
index 40601acd..774fe9c8 100755
--- a/test/T055-path-config.sh
+++ b/test/T055-path-config.sh
@@ -97,9 +97,6 @@ config_subtest () {
local config=$2
test_begin_subtest "$title ($config)"
- if [[ "$config" == "maildir_env" ]]; then
- test_subtest_known_broken
- fi
}
for config in traditional split XDG XDG+profile symlink home_mail maildir_env; do
--
2.30.2
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org