diff options
| author | David Bremner <david@tethera.net> | 2020-12-23 23:45:23 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-02-06 19:36:06 -0400 |
| commit | f118ef3c3db0a01479a505ba85a34879d8e0dede (patch) | |
| tree | 76f7396cd2fb33e2f0a0f1529b1d96bf144fe6f6 /notmuch.c | |
| parent | 5232462dcfe77e6af475c9dd1a25513c43af53f3 (diff) | |
cli/compact: convert to new configuration framework
Switch to the newly created API function notmuch_database_compact_db,
which takes the database opened in main().
Diffstat (limited to 'notmuch.c')
| -rw-r--r-- | notmuch.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -163,7 +163,7 @@ static command_t commands[] = { "Create a plain-text dump of the tags for each message." }, { "restore", notmuch_restore_command, NOTMUCH_COMMAND_DATABASE_EARLY | NOTMUCH_COMMAND_DATABASE_WRITE, "Restore the tags from the given dump file (see 'dump')." }, - { "compact", notmuch_compact_command, NOTMUCH_COMMAND_CONFIG_OPEN, + { "compact", notmuch_compact_command, NOTMUCH_COMMAND_DATABASE_EARLY | NOTMUCH_COMMAND_DATABASE_WRITE, "Compact the notmuch database." }, { "reindex", notmuch_reindex_command, NOTMUCH_COMMAND_DATABASE_EARLY | NOTMUCH_COMMAND_DATABASE_WRITE, "Re-index all messages matching the search terms." }, |
