diff options
| author | David Bremner <david@tethera.net> | 2020-08-08 11:16:52 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-02-06 19:23:28 -0400 |
| commit | d613d10ddd5948b4fa5a186fc54752047b25023d (patch) | |
| tree | a25f5bcc8eddde813a87da0029cd17364ae32676 /notmuch.c | |
| parent | 8588719eb1bb14367464214f304b6f93452124c7 (diff) | |
CLI/{search,address}: convert to new configuration framework
Since we are already passing a search context around as a kind of
parameter block, add a new talloc context to that to replace relying
on 'config'.
Convert notmuch-search and notmuch-address at the same time, because
they share some code.
Add a test to make sure we don't break passing configuration as a
command line argument.
Diffstat (limited to 'notmuch.c')
| -rw-r--r-- | notmuch.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -147,9 +147,9 @@ static command_t commands[] = { "Find and import new messages to the notmuch database." }, { "insert", notmuch_insert_command, NOTMUCH_COMMAND_DATABASE_EARLY | NOTMUCH_COMMAND_DATABASE_WRITE, "Add a new message into the maildir and notmuch database." }, - { "search", notmuch_search_command, NOTMUCH_COMMAND_CONFIG_OPEN, + { "search", notmuch_search_command, NOTMUCH_COMMAND_DATABASE_EARLY, "Search for messages matching the given search terms." }, - { "address", notmuch_address_command, NOTMUCH_COMMAND_CONFIG_OPEN, + { "address", notmuch_address_command, NOTMUCH_COMMAND_DATABASE_EARLY, "Get addresses from messages matching the given search terms." }, { "show", notmuch_show_command, NOTMUCH_COMMAND_CONFIG_OPEN, "Show all messages matching the search terms." }, |
