X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-restore.c;h=1b9598dcee5ec1dd42c075d1255781333ddc5de5;hp=b8f99a39f90bf0a8d951df8750f867ce453305f9;hb=909f52bd8c4bdfa11cd3e75e3d0959e0293689bd;hpb=c004e1e04b9d1b80ea65b26d65a9ec20641cc64c diff --git a/notmuch-restore.c b/notmuch-restore.c index b8f99a39..1b9598dc 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_READ_WRITE); if (notmuch == NULL) return 1;