Commit a663d7d5 a663d7d5dea4de5a8c993deec7684e38a74e066c by Sergey Poznyakoff

* configure.ac, NEWS: Version 1.9.93.

* include/mailutils/libargp.h (mu_app_cfg_verifier): New extern.
* libargp/muinit.c (mu_app_cfg_verifier): New variable.
(mu_app_init): Call mu_app_cfg_verifier if in lint mode.
1 parent d571b7da
2008-11-12 Sergey Poznyakoff <gray@gnu.org.ua>
* configure.ac, NEWS: Version 1.9.93.
* include/mailutils/libargp.h (mu_app_cfg_verifier): New extern.
* libargp/muinit.c (mu_app_cfg_verifier): New variable.
(mu_app_init): Call mu_app_cfg_verifier if in lint mode.
2008-11-11 Sergey Poznyakoff <gray@gnu.org.ua>
* libargp/muinit.c (mu_app_init): Do not parse configs if
......
GNU mailutils NEWS -- history of user-visible changes. 2008-11-07
GNU mailutils NEWS -- history of user-visible changes. 2008-11-12
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007,
2008 Free Software Foundation, Inc.
See the end of file for copying conditions.
......@@ -6,7 +6,7 @@ See the end of file for copying conditions.
Please send mailutils bug reports to <bug-mailutils@gnu.org>.
Version 1.9.92:
Version 1.9.93:
* New configuration file format.
......
......@@ -17,7 +17,7 @@ dnl You should have received a copy of the GNU General Public License along
dnl with GNU Mailutils; if not, write to the Free Software Foundation,
dnl Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
AC_INIT([GNU Mailutils], [1.9.92], [bug-mailutils@gnu.org], [mailutils])
AC_INIT([GNU Mailutils], [1.9.93], [bug-mailutils@gnu.org], [mailutils])
AC_CONFIG_SRCDIR([mailbox/mailbox.c])
AC_CONFIG_AUX_DIR([scripts])
AM_INIT_AUTOMAKE
......
......@@ -44,6 +44,7 @@ struct mu_cmdline_capa
extern int mu_help_config_mode;
extern int mu_rcfile_lint;
extern int (*mu_app_cfg_verifier) (void);
extern struct mu_cmdline_capa mu_common_cmdline;
extern struct mu_cmdline_capa mu_logging_cmdline;
......
......@@ -53,6 +53,8 @@ get_canonical_name ()
int mu_help_config_mode;
int mu_rcfile_lint;
int (*mu_app_cfg_verifier) (void) = NULL;
int
mu_app_init (struct argp *myargp, const char **capa,
struct mu_cfg_param *cfg_param,
......@@ -123,12 +125,19 @@ mu_app_init (struct argp *myargp, const char **capa,
cfgflags |= MU_PARSE_CONFIG_DUMP;
rc = mu_cfg_tree_reduce (mu_argp_tree, mu_program_name, cfg_param,
cfgflags, data);
if (mu_rcfile_lint)
exit ((rc || mu_cfg_error_count) ? 1 : 0);
if (mu_rcfile_lint)
{
if (rc || mu_cfg_error_count)
exit (1);
if (mu_app_cfg_verifier)
rc = mu_app_cfg_verifier ();
exit (rc ? 1 : 0);
}
mu_gocs_flush ();
mu_cfg_destroy_tree (&mu_argp_tree);
return 0;
return !!(rc || mu_cfg_error_count);
}
......