]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database.cc
Make maildir synchronization configurable
[notmuch] / lib / database.cc
index 380bbe3daa66e9a878c084b6f1e7fc2b1ace1470..293d21aa01ff70c03ecdcbe3221c92dca21247f5 100644 (file)
@@ -688,6 +688,8 @@ notmuch_database_open (const char *path,
        notmuch = NULL;
     }
 
+    notmuch_database_set_maildir_sync (notmuch, FALSE);
+
   DONE:
     if (notmuch_path)
        free (notmuch_path);
@@ -717,6 +719,13 @@ notmuch_database_close (notmuch_database_t *notmuch)
     talloc_free (notmuch);
 }
 
+void
+notmuch_database_set_maildir_sync (notmuch_database_t *database,
+                                  notmuch_bool_t maildir_sync)
+{
+    database->maildir_sync = maildir_sync;
+}
+
 const char *
 notmuch_database_get_path (notmuch_database_t *notmuch)
 {