X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-dump.c;h=86570d09070d26474210f5c62f4481b3fd5e7f8c;hp=4c6e3211022c34e25b54205db17593a796d10535;hb=f379aa52845f5594aa6cc2e7cf131d5f57202bbf;hpb=aac1d6035238f6a2b18c0dc0d7a5190a2187c511 diff --git a/notmuch-dump.c b/notmuch-dump.c index 4c6e3211..86570d09 100644 --- a/notmuch-dump.c +++ b/notmuch-dump.c @@ -35,7 +35,8 @@ notmuch_dump_command (unused (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;