X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-restore.c;h=001f3fcb762c71adf20a6af7dd3ff39ea6a3eb1c;hb=f379aa52845f5594aa6cc2e7cf131d5f57202bbf;hp=b8f99a39f90bf0a8d951df8750f867ce453305f9;hpb=aac1d6035238f6a2b18c0dc0d7a5190a2187c511;p=notmuch diff --git a/notmuch-restore.c b/notmuch-restore.c index b8f99a39..001f3fcb 100644 --- a/notmuch-restore.c +++ b/notmuch-restore.c @@ -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_WRITABLE); if (notmuch == NULL) return 1;