notmuch new: Fix to actually open the database READ_WRITE.

Chris claims he must have been distracted when he wrote this.
This commit is contained in:
Chris Wilson 2009-11-22 00:13:24 +01:00 committed by Carl Worth
parent b725481cb3
commit b5d7632000

View 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_READ_ONLY);
NOTMUCH_DATABASE_MODE_READ_WRITE);
add_files_state.ignore_read_only_directories = TRUE;
add_files_state.total_files = 0;
}