X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;h=43cc4fb721012679c160b2f568f04714a8da6393;hp=f241edf94a838586aaa8fdf3b8a4904785702784;hb=f336ee034be3c9518883dfb34db27529f4a4b83b;hpb=f379aa52845f5594aa6cc2e7cf131d5f57202bbf diff --git a/notmuch-new.c b/notmuch-new.c index f241edf9..43cc4fb7 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -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; }