path: root/libmailutils/
authorSergey Poznyakoff <>2016-10-11 14:20:38 (GMT)
committer Sergey Poznyakoff <>2016-10-11 14:36:10 (GMT)
commitbc73fc65600b6021dfe7a9fa1fba7e9b823993e2 (patch) (side-by-side diff)
tree934b239ddd68b1bc91a42b66ddccfe3bcf01accf /libmailutils/
parent6e8147334cf9ffe36367760c06002a1e5b7ae0d5 (diff)
Introduce new CLI/configuration code for mailutils applications.
The new API is to replace libmu_cfg and libmu_argp. A smooth transition is scheduled, during which the two APIs will coexist, * Build libmailutils/cli/Makefile * include/mailutils/cli.h: New file. * include/mailutils/ Add cli.h * libmailutils/cli/ New file. * libmailutils/cli/capa.c: New file. * libmailutils/cli/cli.c: New file. * libmailutils/cli/stdcapa.c: New file. * libmailutils/ (SUBDIRS): Add cli. * include/mailutils/cfg.h (mu_cfg_parse_hints): New members: append_tree and data. (MU_PARSE_CONFIG_LINT): New flag. * include/mailutils/diag.h (mu_program_name) (mu_full_program_name): Remove const qualifier. * include/mailutils/locker.h (mu_locker_set_default_external_program): Argument is const. * libmailutils/base/locker.c: Likewise. * include/mailutils/opt.h (mu_progname, mu_absprogname): Replace with mu_program_name and mu_full_program_name. (mu_set_progname): Rename to mu_set_program_name. (mu_parseopt) <po_data>: Change type to void *. (po_help_hook, po_version_hook): Change signatures. (mu_parseopt_error): New function. * libmailutils/opt/progname.c (mu_progname, mu_absprogname): Replace with mu_program_name and mu_full_program_name. (mu_set_progname): Rename to mu_set_program_name. * libmailutils/opt/help.c: Minor changes * libmailutils/opt/opt.c (parse_error): Rename to mu_parse_error (extern). (next_opt): Fix permutations. * libmailutils/tests/parseopt.c: Reflect changes. * libmailutils/tests/ Improve test case * libmailutils/tests/ Reflect changes. * libmailutils/tests/ Reflect changes. * include/mailutils/stdstream.h (mu_program_name): Remove qualifier. * libmailutils/cfg/driver.c (mu_cfg_tree_reduce): Remove useless condition * libmailutils/cfg/lexer.l (mu_cfg_parse_file): Additional info messages. * libmailutils/cfg/parser.y (mu_cfg_parse_config): Join in the append_tree. * libmailutils/diag/diag.c (mu_program_name, mu_full_program_name) (mu_set_program_name): Remove. Declared elsewhere. * libmu_sieve/conf.c: Add new configuration code. Mark old text for removal. * libmailutils/tests/tcli.c: New program. * libmailutils/tests/ Add tcli.c
Diffstat (limited to 'libmailutils/') (more/less context) (show whitespace changes)
1 files changed, 2 insertions, 1 deletions
diff --git a/libmailutils/ b/libmailutils/
index 7a5270c..82550c2 100644
--- a/libmailutils/
+++ b/libmailutils/
@@ -17,7 +17,7 @@
# <>.
- auth base address list sockaddr cidr cfg diag\
+ auth base address list sockaddr cidr cfg cli diag\
filter mailbox mailer mime msgset opt server string stream stdstream\
property url imapio datetime . tests
@@ -33,6 +33,7 @@ libmailutils_la_LIBADD = \
+ cli/\

Return to:

Send suggestions and report system problems to the System administrator.