bool config_path_specified, expand_vars = FALSE, hide_key = FALSE;
bool parse_full_config = FALSE, simple_output = FALSE;
bool dump_defaults = FALSE, host_verify = FALSE;
+ bool print_plugin_comment = FALSE;
if (getenv("USE_SYSEXITS") != NULL) {
/* we're coming from (e.g.) LDA */
/* print the config file path before parsing it, so in case
of errors it's still shown */
printf("# "DOVECOT_VERSION_FULL": %s\n", config_path);
+ print_plugin_comment = TRUE;
fflush(stdout);
}
master_service_init_finish(master_service);
config_parse_load_modules();
+ if (print_plugin_comment) {
+ struct module *m;
+
+ for (m = modules; m != NULL; m = m->next) {
+ const char **str = module_get_symbol_quiet(m,
+ t_strdup_printf("%s_doveconf_comment", m->name));
+ if (str != NULL)
+ printf("# %s\n", *str);
+ }
+ }
+
if ((ret = config_parse_file(dump_defaults ? NULL : config_path,
expand_vars,
parse_full_config ? NULL : wanted_modules,