From: Chris Wilson Date: Sat, 21 Nov 2009 23:13:24 +0000 (+0100) Subject: notmuch new: Fix to actually open the database READ_WRITE. X-Git-Tag: 0.1~379 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b5d763200046b50656c96ac126f8db4054ff3440;p=notmuch.git notmuch new: Fix to actually open the database READ_WRITE. Chris claims he must have been distracted when he wrote this. --- diff --git a/notmuch-new.c b/notmuch-new.c index bc35b4e8..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_READ_ONLY); + NOTMUCH_DATABASE_MODE_READ_WRITE); add_files_state.ignore_read_only_directories = TRUE; add_files_state.total_files = 0; }