]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-dump.c
test: Test upgrade to ghost messages feature
[notmuch] / notmuch-dump.c
index 887a20822d828ef6dab98f58f156e37bebefdf06..9c6ad7f47b0fde514a5e64c96705d598f2eee7ec 100644 (file)
@@ -212,7 +212,7 @@ notmuch_dump_command (notmuch_config_t *config, int argc, char *argv[])
     int ret;
 
     if (notmuch_database_open (notmuch_config_get_database_path (config),
-                              NOTMUCH_DATABASE_MODE_READ_ONLY, &notmuch))
+                              NOTMUCH_DATABASE_MODE_READ_WRITE, &notmuch))
        return EXIT_FAILURE;
 
     char *output_file_name = NULL;