]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-reply.c
Permit opening the notmuch database in read-only mode.
[notmuch] / notmuch-reply.c
index c6122aa760e067c6b074215df816d684f509fe84..291cd024d696126219d073a2a679af456619db0e 100644 (file)
@@ -223,7 +223,8 @@ notmuch_reply_command (void *ctx, int argc, 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;