The C functions notmuch_database_get_config, notmuch_database_get_config_list and notmuch_database_set_config are part of the official C bindings. So there should also be some python bindings for them. Also they are the only way to access the named queries introduced in b9bf3f44. The interface of the python functions is designed to be close to the C functions. --- bindings/python/docs/source/database.rst | 6 ++ bindings/python/notmuch/database.py | 106 +++++++++++++++++++++++++++++++ bindings/python/notmuch/globals.py | 5 ++ 3 files changed, 117 insertions(+)