aboutsummaryrefslogtreecommitdiff
path: root/test/T035-read-config.sh
AgeCommit message (Collapse)Author
2021-03-19CLI/show: complete conversion to new configuration framework.David Bremner
In order to open the database in main() for this command, we may need to re-open it in the (possibly less common) case where crypto options require write access.
2021-02-06cli/new: convert to new config frameworkDavid Bremner
In addition to the same type of changes as converting other subcommands, add the possibility of creating a database at the top level. It would probably make sense to use this for insert as well.
2021-02-06cli/compact: convert to new configuration frameworkDavid Bremner
Switch to the newly created API function notmuch_database_compact_db, which takes the database opened in main().
2021-02-06cli/tag: convert to new config framework.David Bremner
In addition to changing configuration access, change talloc context for allocation.
2021-02-06CLI/show: mostly switch show to new config frameworkDavid Bremner
This will need some cleanup when the transition completes, and we stop passing notmuch_config_t structs to the subcommands. Unlike the general case, we open the database in the subcommand, since we don't know whether it should be opened read/write until we parse the command line arguments. Add a test to make sure passing config file on the command line is not broken by these or future config related changes.
2021-02-06CLI/{search,address}: convert to new configuration frameworkDavid Bremner
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.
2021-02-06CLI/reply: convert to new config frameworkDavid Bremner
This is messier than some of the other conversions because the extensive use of 'config' as a talloc context.
2021-02-06cli/reindex: convert new config frameworkDavid Bremner
The only non-trivial part is switching the talloc context for query_string_from args from 'config' to 'notmuch'.
2021-02-06CLI/insert: convert to new config framework.David Bremner
The new talloc context is needed to run the hook at the very end of the function. That in turn is needed so that this process gives up the write lock on the database.
2021-02-06CLI/restore: convert to new config frameworkDavid Bremner
Switch one configuration check to new n_c_get_bool function, and switch use of config as talloc context to notmuch.
2021-02-06cli/dump: convert to new config frameworkDavid Bremner
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.
2021-02-06CLI/count: switch to new configuration frameworkDavid Bremner
The main effort is changing from the old argv style config list iterators to the new more opaque ones provided by the library (and backed by the database+file config cache).