diff options
Diffstat (limited to 'notmuch-search.c')
-rw-r--r-- | notmuch-search.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/notmuch-search.c b/notmuch-search.c index 2b1c0fea..cde97351 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_READONLY); if (notmuch == NULL) return 1; |