X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/ce133ea613d35214340b24a8ef2097e00ddb3678..39755c16ba29d951df230944f652c5da9a445c0f:/src/src/readconf.c diff --git a/src/src/readconf.c b/src/src/readconf.c index f127d5202..8a237d38a 100644 --- a/src/src/readconf.c +++ b/src/src/readconf.c @@ -285,6 +285,9 @@ static optionlist optionlist_config[] = { { "host_lookup_order", opt_stringptr, &host_lookup_order }, { "host_reject_connection", opt_stringptr, &host_reject_connection }, { "hosts_connection_nolog", opt_stringptr, &hosts_connection_nolog }, +#ifdef SUPPORT_PROXY + { "hosts_proxy", opt_stringptr, &hosts_proxy }, +#endif { "hosts_treat_as_local", opt_stringptr, &hosts_treat_as_local }, #ifdef LOOKUP_IBASE { "ibase_servers", opt_stringptr, &ibase_servers }, @@ -354,9 +357,6 @@ static optionlist optionlist_config[] = { { "print_topbitchars", opt_bool, &print_topbitchars }, { "process_log_path", opt_stringptr, &process_log_path }, { "prod_requires_admin", opt_bool, &prod_requires_admin }, -#ifdef EXPERIMENTAL_PROXY - { "proxy_required_hosts", opt_stringptr, &proxy_required_hosts }, -#endif { "qualify_domain", opt_stringptr, &qualify_domain_sender }, { "qualify_recipient", opt_stringptr, &qualify_domain_recipient }, { "queue_domains", opt_stringptr, &queue_domains }, @@ -413,7 +413,7 @@ static optionlist optionlist_config[] = { { "smtp_receive_timeout", opt_func, &fn_smtp_receive_timeout }, { "smtp_reserve_hosts", opt_stringptr, &smtp_reserve_hosts }, { "smtp_return_error_details",opt_bool, &smtp_return_error_details }, -#ifdef EXPERIMENTAL_INTERNATIONAL +#ifdef SUPPORT_I18N { "smtputf8_advertise_hosts", opt_stringptr, &smtputf8_advertise_hosts }, #endif #ifdef WITH_CONTENT_SCAN @@ -4289,44 +4289,42 @@ for (i = config_lines; i; i = i->next) /* # lines */ if (current[0] == '#') - { - puts(current); - continue; - } + puts(CCS current); /* begin lines are left aligned */ - if (strncmp(current, "begin", 5) == 0 && isspace(current[5])) + else if (Ustrncmp(current, "begin", 5) == 0 && isspace(current[5])) { - puts(current); + puts(CCS current); indent = TS; - continue; } /* router/acl/transport block names */ - if (current[strlen(current)-1] == ':' && !strchr(current, '=')) + else if (current[strlen(current)-1] == ':' && !Ustrchr(current, '=')) { printf("%*s%s\n", TS, "", current); indent = 2 * TS; - continue; } /* hidden lines (MACROS or prefixed with hide) */ - if (!admin && (isupper(*current) - || (strncmp(current, "hide", 4) == 0 && isspace(current[4])))) + else if ( !admin + && ( isupper(*current) + || Ustrncmp(current, "hide", 4) == 0 && isspace(current[4]) + ) + ) { - if (p = strchr(current, '=')) + if (p = Ustrchr(current, '=')) { *p = '\0'; printf("%*s%s = %s\n", indent, "", current, hidden); } /* e.g.: hide split_spool_directory */ - else printf("%*s\n", indent, hidden); - continue; + else + printf("%*s\n", indent, hidden); } - /* rest is public */ - printf("%*s%s\n", indent, "", current); - continue; + else + /* rest is public */ + printf("%*s%s\n", indent, "", current); } }