As of notmuch 0.34.2, the python-cffi bindings make available the
configuration from both a config file and the database
Database.config.  It is therefore confusing that the iterator
operations only work on the configuration information stored in the

The likely fix is to switch to the newer notmuch_config_pairs_t API.

[1]: d7f95724132bf658fd151630185899737e2ed829
 test/ | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/test/ b/test/
index 1df240dd..105ee982 100755
--- a/test/
+++ b/test/
@@ -293,6 +293,30 @@
    test_expect_equal_file EXPECTED OUTPUT
+   test_begin_subtest "Config list from python ($config)"
+   test_subtest_known_broken
+   test_python <<EOF > OUTPUT
+from notmuch2 import Database
+for key in list(db.config):
+    print(key)
+   cat <<EOF > EXPECTED
+   test_expect_equal_file EXPECTED OUTPUT
    case $config in
           test_begin_subtest "Set shadowed config value in database ($config)"

notmuch mailing list --
To unsubscribe send an email to

Reply via email to