]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-show.c
Rename NOTMUCH_DATABASE_MODE_WRITABLE to NOTMUCH_DATABASE_MODE_READ_WRITE
[notmuch] / notmuch-show.c
index a21d223cd3f3e9ed669672316b170ea757be8a32..d727f302d2f09324dc5dc7d30681d6dc0fb236ef 100644 (file)
@@ -220,7 +220,8 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[]))
        return 1;
     }
 
-    notmuch = notmuch_database_open (notmuch_config_get_database_path (config));
+    notmuch = notmuch_database_open (notmuch_config_get_database_path (config),
+                                    NOTMUCH_DATABASE_MODE_READ_ONLY);
     if (notmuch == NULL)
        return 1;