]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-config.c
config: define new option index.try_decrypt
[notmuch] / notmuch-config.c
index 746687189f199bd155d5a867186e2a7704ef4605..1cba2661d99d54276b0c6b6c5c2ee9954eb94359 100644 (file)
@@ -812,8 +812,14 @@ _item_split (char *item, char **group, char **key)
 static bool
 _stored_in_db (const char *item)
 {
+    const char * db_configs[] = {
+       "index.try_decrypt",
+    };
     if (STRNCMP_LITERAL (item, "query.") == 0)
        return true;
+    for (size_t i = 0; i < ARRAY_SIZE (db_configs); i++)
+       if (strcmp (item, db_configs[i]) == 0)
+           return true;
     return false;
 }