diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-03-01 23:08:32 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-03-01 23:08:32 +0000 |
commit | 7128853094a3df29948dc949ff04b43cccd400f7 (patch) | |
tree | 69db0978e6b835b7a736490a06a4307b1e32aa0c /src/main.c | |
parent | c6eecf2842218ed97a7084fbecae06388ec358f3 (diff) | |
download | mailfromd-7128853094a3df29948dc949ff04b43cccd400f7.tar.gz mailfromd-7128853094a3df29948dc949ff04b43cccd400f7.tar.bz2 |
Start implementing test MTA simulator and Gacopyz server code
git-svn-id: file:///svnroot/mailfromd/trunk@1269 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -895,6 +895,7 @@ enum mailfromd_option { OPTION_DUMP_XREF, OPTION_EXPIRE, OPTION_FOREGROUND, + OPTION_DEBUG_GACOPYZ, OPTION_IGNORE_FAILED_READS, OPTION_LIST, OPTION_LOCK_RETRY_COUNT, @@ -1032,6 +1033,8 @@ static struct argp_option options[] = { N_("Show used Sendmail macros"), GRP+1 }, { "xref", OPTION_DUMP_XREF, NULL, 0, N_("Produce a cross-reference listing"), GRP+1 }, + { "gacopyz-debug", OPTION_DEBUG_GACOPYZ, NULL, 0, + N_("Milter protocol trace"), GRP+1 }, { "dump-xref", 0, NULL, OPTION_ALIAS, NULL, GRP+1 }, { "stderr", 's', NULL, 0, N_("Log to stderr"), GRP+1 }, @@ -1268,6 +1271,10 @@ parse_opt (int key, char *arg, struct argp_state *state) foreground = 1; break; + case OPTION_DEBUG_GACOPYZ: + smfi_setdbg(1); + break; + case OPTION_LIST: need_config = 0; log_to_stderr = 1; @@ -1715,7 +1722,8 @@ main(int argc, char **argv) if (!log_to_stderr) { openlog(syslog_tag, LOG_PID, log_facility); mu_error_set_print(syslog_error_printer); - } + } else + gacopyz_set_logger (gacopyz_stderr_log_printer); if (script_dump_macros) print_used_macros(); |