From: mkanat%bugzilla.org <> Date: Sun, 17 Jun 2007 23:58:14 +0000 (+0000) Subject: Bug 384497: Add a parameter that enables debug mode for SMTP X-Git-Tag: bugzilla-3.0.1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af22263d2222a7e8d21d60bef6e99863abf8f966;p=thirdparty%2Fbugzilla.git Bug 384497: Add a parameter that enables debug mode for SMTP Patch By Max Kanat-Alexander r=LpSolit, a=mkanat --- diff --git a/Bugzilla/Config/MTA.pm b/Bugzilla/Config/MTA.pm index 3415677f3a..686d5b3e42 100644 --- a/Bugzilla/Config/MTA.pm +++ b/Bugzilla/Config/MTA.pm @@ -68,7 +68,11 @@ sub get_param_list { type => 't', default => 'localhost' }, - + { + name => 'smtp_debug', + type => 'b', + default => 0 + }, { name => 'whinedays', type => 't', diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 1d4a90a4f6..ab54ecfea9 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -100,7 +100,8 @@ sub MessageToMTA { if ($method eq "SMTP") { push @args, Host => Bugzilla->params->{"smtpserver"}, - Hello => $hostname; + Hello => $hostname, + Debug => Bugzilla->params->{'smtp_debug'}; } if ($method eq "Test") { diff --git a/template/en/default/admin/params/mta.html.tmpl b/template/en/default/admin/params/mta.html.tmpl index 778f81d0aa..7af38ed6d4 100644 --- a/template/en/default/admin/params/mta.html.tmpl +++ b/template/en/default/admin/params/mta.html.tmpl @@ -56,6 +56,11 @@ smtpserver => "The SMTP server address (if using SMTP for mail delivery).", + smtp_debug => "If enabled, this will print detailed information to your" _ + " web server's error log about the communication between" _ + " $terms.Bugzilla and your SMTP server. You can use this to" _ + " troubleshoot email problems.", + whinedays => "The number of days that we'll let a $terms.bug sit untouched in a NEW " _ "state before our cronjob will whine at the owner.
" _ "Set to 0 to disable whining.",