mu: improve query interface.
* include/mailutils/cfg.h (mu_cfg_node) <parent>: New member. (MU_CFG_FMT_VALUE_ONLY) (MU_CFG_FMT_PARAM_PATH): New flags. * libmailutils/cfg/format.c (format_path): New static. (format_node,format_node_end): Handle new flags. (mu_cfg_format_node): Clear MU_CFG_FMT_VALUE_ONLY if the requested node is mu_cfg_node_statement. * libmailutils/cfg/parser.y: Set node parents. (mu_cfg_find_node): Fix coredump. * mu/query.c: New options --value and --path.
Showing
4 changed files
with
110 additions
and
38 deletions
-
Please register or sign in to post a comment