summaryrefslogtreecommitdiffstats
path: root/notmuch.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-08-26 07:54:10 -0300
committerDavid Bremner <david@tethera.net>2021-02-06 19:12:34 -0400
commit53f27aaf73192babf831e907ade71dc16f6880be (patch)
tree5d94f90a144e50a33222cfdff5e0c54ae20ab820 /notmuch.c
parentacc6331baa41a8aa7025924c823251d8f8c3384f (diff)
cli/dump: convert to new config framework
This conversion is trivial because the only configuration information accessed by dump is that stored in the database (in order to dump it). We do need to be careful to keep the write lock on the database to ensure dump consistency.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch.c b/notmuch.c
index 40527893..b10cc702 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -159,7 +159,7 @@ static command_t commands[] = {
"Construct a reply template for a set of messages." },
{ "tag", notmuch_tag_command, NOTMUCH_COMMAND_CONFIG_OPEN,
"Add/remove tags for all messages matching the search terms." },
- { "dump", notmuch_dump_command, NOTMUCH_COMMAND_CONFIG_OPEN,
+ { "dump", notmuch_dump_command, NOTMUCH_COMMAND_DATABASE_EARLY | NOTMUCH_COMMAND_DATABASE_WRITE,
"Create a plain-text dump of the tags for each message." },
{ "restore", notmuch_restore_command, NOTMUCH_COMMAND_CONFIG_OPEN,
"Restore the tags from the given dump file (see 'dump')." },