X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-reply.c;h=44e17661ea8a4cbc16c40727b61846e639e294bd;hp=c6122aa760e067c6b074215df816d684f509fe84;hb=637f99d8f3f45867d0a856503f9f302333824c07;hpb=e94bd8506bd44e4d6f317553c9ca52bc9771c9a7 diff --git a/notmuch-reply.c b/notmuch-reply.c index c6122aa7..44e17661 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -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_READ_ONLY); if (notmuch == NULL) return 1;