]> git.notmuchmail.org Git - notmuch/blobdiff - lib/open.cc
lib/open: look in MAILDIR for database, as documented.
[notmuch] / lib / open.cc
index 3325e72506cb3023911c870056265ef63b305fd5..137434592a3066a6d69d83ee2a365fd9a4095ebb 100644 (file)
@@ -220,6 +220,10 @@ _choose_database_path (void *ctx,
        }
     }
 
+    if (! *database_path) {
+       *database_path = getenv ("MAILDIR");
+    }
+
     if (! *database_path) {
        notmuch_status_t status;