X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-search.c;h=aa6662bd73b62b3708e363f196abc9abf39b0f0e;hp=2b1c0fea950d01ae0c37e30accfc1256cd0c5f93;hb=fff24a2858686af8dfd579a9e09736bea9795e83;hpb=306635c27d1ca46a51d354235f3e0c6ec4b65de6 diff --git a/notmuch-search.c b/notmuch-search.c index 2b1c0fea..aa6662bd 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -129,7 +129,8 @@ notmuch_search_command (void *ctx, int argc, char *argv[]) if (config == NULL) 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;