Commit d13c46a2 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 384497: Add a parameter that enables debug mode for SMTP

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
parent cc991346
......@@ -68,7 +68,11 @@ sub get_param_list {
type => 't',
default => 'localhost'
},
{
name => 'smtp_debug',
type => 'b',
default => 0
},
{
name => 'whinedays',
type => 't',
......
......@@ -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") {
......
......@@ -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.<br> " _
"Set to 0 to disable whining.",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment