aboutsummaryrefslogtreecommitdiff
path: root/lib/open.cc
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-12-24 16:10:05 -0400
committerDavid Bremner <david@tethera.net>2021-02-06 19:03:36 -0400
commit06a64cf0aa2bc3de083d0c317726863ebeed504f (patch)
treee9cfa4842af8cc4049c4dc7eb1037bbeaf4e5f2a /lib/open.cc
parentd6bd87a712c6df3126589ec223f4c599fa8450b5 (diff)
lib/open: load default values for known configuration keys.
This emulates the behaviour of notmuch_config_open defined in the CLI, in that it fills in default values if they are not otherwise defined.
Diffstat (limited to 'lib/open.cc')
-rw-r--r--lib/open.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/open.cc b/lib/open.cc
index 2d9c4365..ad74ccd6 100644
--- a/lib/open.cc
+++ b/lib/open.cc
@@ -289,6 +289,10 @@ notmuch_database_open_with_config (const char *database_path,
if (status)
goto DONE;
+ status = _notmuch_config_load_defaults (notmuch);
+ if (status)
+ goto DONE;
+
status = _notmuch_database_setup_standard_query_fields (notmuch);
if (status)
goto DONE;