]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-show.c
Permit opening the notmuch database in read-only mode.
[notmuch] / notmuch-show.c
index a21d223cd3f3e9ed669672316b170ea757be8a32..a764e4438e678739a670625a42bb2de4a6a2a99b 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_READONLY);
     if (notmuch == NULL)
        return 1;