]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database.cc
lib/compact: replace deprecated notmuch_database_open_verbose
[notmuch] / lib / database.cc
index 7eb0de79ee288ce704e302d6dde73d66a9722535..6ef56d561ca50b42fdad959ad79f24e9e79255e7 100644 (file)
@@ -590,10 +590,12 @@ notmuch_database_compact (const char *path,
     notmuch_database_t *notmuch = NULL;
     char *message = NULL;
 
     notmuch_database_t *notmuch = NULL;
     char *message = NULL;
 
-    ret = notmuch_database_open_verbose (path,
-                                        NOTMUCH_DATABASE_MODE_READ_WRITE,
-                                        &notmuch,
-                                        &message);
+    ret = notmuch_database_open_with_config (path,
+                                            NOTMUCH_DATABASE_MODE_READ_WRITE,
+                                            "",
+                                            NULL,
+                                            &notmuch,
+                                            &message);
     if (ret) {
        if (status_cb) status_cb (message, closure);
        return ret;
     if (ret) {
        if (status_cb) status_cb (message, closure);
        return ret;