aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/mailutils/mailutils.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/modules/mailutils/mailutils.c b/modules/mailutils/mailutils.c
index 26d04d6..b383bdb 100644
--- a/modules/mailutils/mailutils.c
+++ b/modules/mailutils/mailutils.c
@@ -573,9 +573,8 @@ create_log_stream (mu_stream_t *pstream)
573static void 573static void
574init_hints(struct mu_cfg_parse_hints *hints) 574init_hints(struct mu_cfg_parse_hints *hints)
575{ 575{
576 hints->flags |= MU_PARSE_CONFIG_PLAIN | 576 hints->flags |= MU_CFHINT_SITE_FILE | MU_CFHINT_PROGRAM;
577 MU_CFG_PARSE_SITE_RCFILE | MU_CFG_PARSE_PROGRAM; 577 hints->site_file = mu_site_config_file();
578 hints->site_rcfile = mu_site_config_file();
579 hints->program = (char*) mu_program_name; 578 hints->program = (char*) mu_program_name;
580} 579}
581 580
@@ -595,9 +594,9 @@ mod_mailutils_init(int argc, char **argv)
595 { SMAP_OPTSTR(onerror-reply), smap_opt_string, 594 { SMAP_OPTSTR(onerror-reply), smap_opt_string,
596 &dfl_onerror_reply }, 595 &dfl_onerror_reply },
597 { SMAP_OPTSTR(config-verbose), smap_opt_bitmask, 596 { SMAP_OPTSTR(config-verbose), smap_opt_bitmask,
598 &hints.flags, { MU_PARSE_CONFIG_VERBOSE } }, 597 &hints.flags, { MU_CF_VERBOSE } },
599 { SMAP_OPTSTR(config-dump), smap_opt_bitmask, 598 { SMAP_OPTSTR(config-dump), smap_opt_bitmask,
600 &hints.flags, { MU_PARSE_CONFIG_DUMP } }, 599 &hints.flags, { MU_CF_DUMP } },
601 { NULL } 600 { NULL }
602 }; 601 };
603 602
@@ -660,9 +659,9 @@ mod_mailutils_init_db(const char *dbid, int argc, char **argv)
660 { SMAP_OPTSTR(config-file), smap_opt_string, 659 { SMAP_OPTSTR(config-file), smap_opt_string,
661 &config_file }, 660 &config_file },
662 { SMAP_OPTSTR(config-verbose), smap_opt_bitmask, 661 { SMAP_OPTSTR(config-verbose), smap_opt_bitmask,
663 &cfgflags, { MU_PARSE_CONFIG_VERBOSE } }, 662 &cfgflags, { MU_CF_VERBOSE } },
664 { SMAP_OPTSTR(config-dump), smap_opt_bitmask, 663 { SMAP_OPTSTR(config-dump), smap_opt_bitmask,
665 &cfgflags, { MU_PARSE_CONFIG_DUMP } }, 664 &cfgflags, { MU_CF_DUMP } },
666 { NULL } 665 { NULL }
667 }; 666 };
668 667
@@ -715,9 +714,9 @@ mod_mailutils_open(smap_database_t dbp)
715 714
716 mu_cfg_error_count = 0; 715 mu_cfg_error_count = 0;
717 mu_cfg_parser_verbose = 0; 716 mu_cfg_parser_verbose = 0;
718 if (db->config_flags & MU_PARSE_CONFIG_VERBOSE) 717 if (db->config_flags & MU_CF_VERBOSE)
719 mu_cfg_parser_verbose++; 718 mu_cfg_parser_verbose++;
720 if (db->config_flags & MU_PARSE_CONFIG_DUMP) 719 if (db->config_flags & MU_CF_DUMP)
721 mu_cfg_parser_verbose++; 720 mu_cfg_parser_verbose++;
722 rc = mu_cfg_parse_file(&tree, db->config_file, 721 rc = mu_cfg_parse_file(&tree, db->config_file,
723 db->config_flags); 722 db->config_flags);

Return to:

Send suggestions and report system problems to the System administrator.