Pass smtp_debug parameter to SMTP transport, remove sysread hack (breaks Email::Sender::Transport::SMTP)

i18n
Vitaliy Filippov 2017-02-10 17:35:04 +03:00
parent 97aa1f1787
commit a8c63de19d
2 changed files with 3 additions and 2 deletions

View File

@ -151,6 +151,9 @@ sub MessageToMTA {
username => Bugzilla->params->{"smtp_username"},
password => Bugzilla->params->{"smtp_password"},
helo => $hostname;
if (Bugzilla->params->{smtp_debug}) {
push @args, debug => 1;
}
}
Bugzilla::Hook::process('mailer_before_send',

View File

@ -12,8 +12,6 @@ BEGIN
($dir) = $dir =~ /^(.*)$/s;
chdir($dir);
$Bugzilla::HTTPServerSimple::DOCROOT = $dir;
# Force everyone to use buffered input!
*CORE::GLOBAL::sysread = sub(*$$;$) { read $_[0], $_[1], $_[2], $_[3]; };
}
use lib qw(.);