]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
get_timestamp: Ensure that return value is 0 in case of exception.
[notmuch] / notmuch-new.c
index f241edf94a838586aaa8fdf3b8a4904785702784..43cc4fb721012679c160b2f568f04714a8da6393 100644 (file)
@@ -414,7 +414,7 @@ notmuch_new_command (void *ctx,
        add_files_state.total_files = count;
     } else {
        notmuch = notmuch_database_open (db_path,
-                                        NOTMUCH_DATABASE_MODE_READONLY);
+                                        NOTMUCH_DATABASE_MODE_READ_WRITE);
        add_files_state.ignore_read_only_directories = TRUE;
        add_files_state.total_files = 0;
     }