--- bindings/python/notmuch/database.py | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index 9d7737b2..1fd312dd 100644 --- a/bindings/python/notmuch/database.py +++ b/bindings/python/notmuch/database.py @@ -709,3 +709,10 @@ class Database(object): config_list.append((key, value)) self._config_list_move_to_next(config_list_p) return config_list + + def get_all_named_queries(self): + """Returns a dict of all named queries mapped to their search queries. + + This function is a python extension and not in the underlying C API. + """ + return {k[6:]: v for k, v in self.get_config_list('query.')}
_______________________________________________ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch