]> git.notmuchmail.org Git - notmuch/blobdiff - lib/open.cc
lib: support splitting mail from database location.
[notmuch] / lib / open.cc
index 3bb3e1034e3d7fb1ebb4c1b5d51603e308eb436d..8fc17cafaa939ac8b97b3a7c31f181304ef0d5f4 100644 (file)
@@ -263,6 +263,11 @@ _choose_xapian_path (void *ctx, const char *database_path, const char **xapian_p
     if (status)
        goto DONE;
 
+    trial_path = talloc_asprintf (ctx, "%s/xapian", database_path);
+    status = _trial_open (trial_path, message_ptr);
+    if (status != NOTMUCH_STATUS_PATH_ERROR)
+       goto DONE;
+
     notmuch_path = talloc_asprintf (ctx, "%s/.notmuch", database_path);
     status = _db_dir_exists (notmuch_path, message_ptr);
     if (status)