]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-restore.c
emacs: Add instructions to the hidden citations/signatures.
[notmuch] / notmuch-restore.c
index b8f99a39f90bf0a8d951df8750f867ce453305f9..1b9598dcee5ec1dd42c075d1255781333ddc5de5 100644 (file)
@@ -36,7 +36,8 @@ notmuch_restore_command (unused (void *ctx), int argc, char *argv[])
     if (config == NULL)
        return 1;
 
-    notmuch = notmuch_database_open (notmuch_config_get_database_path (config));
+    notmuch = notmuch_database_open (notmuch_config_get_database_path (config),
+                                    NOTMUCH_DATABASE_MODE_READ_WRITE);
     if (notmuch == NULL)
        return 1;