aboutsummaryrefslogtreecommitdiff
path: root/notmuch-dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch-dump.c')
-rw-r--r--notmuch-dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/notmuch-dump.c b/notmuch-dump.c
index 4c6e321..86570d0 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;