aboutsummaryrefslogtreecommitdiff
path: root/notmuch.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-10-05 20:35:26 -0300
committerDavid Bremner <david@tethera.net>2021-02-06 19:19:18 -0400
commit0ab0b48be2d76c2c9b5581c1b66b21934b2025b7 (patch)
tree88e1d56cddb7300ce6861a76525d98bb2d1068d8 /notmuch.c
parentf994f0e7df178eb31c656329bb28ffa832ac4364 (diff)
cli/reindex: convert new config framework
The only non-trivial part is switching the talloc context for query_string_from args from 'config' to 'notmuch'.
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 8e697396..82d68681 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -165,7 +165,7 @@ static command_t commands[] = {
"Restore the tags from the given dump file (see 'dump')." },
{ "compact", notmuch_compact_command, NOTMUCH_COMMAND_CONFIG_OPEN,
"Compact the notmuch database." },
- { "reindex", notmuch_reindex_command, NOTMUCH_COMMAND_CONFIG_OPEN,
+ { "reindex", notmuch_reindex_command, NOTMUCH_COMMAND_DATABASE_EARLY | NOTMUCH_COMMAND_DATABASE_WRITE,
"Re-index all messages matching the search terms." },
{ "config", notmuch_config_command, NOTMUCH_COMMAND_CONFIG_OPEN,
"Get or set settings in the notmuch configuration file." },