Pass smtp_debug parameter to SMTP transport, remove sysread hack (breaks Email::Sender::Transport::SMTP)
parent
97aa1f1787
commit
a8c63de19d
|
@ -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',
|
||||
|
|
|
@ -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(.);
|
||||
|
|
Loading…
Reference in New Issue