From b0767f94d07950e7420deb901b208d131427c535 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 5 Nov 2021 12:50:35 -0300 Subject: [PATCH] Bug 29427: Make SMTP transport set debug mode correctly This patch makes the _transport_ method in Koha::SMTP::Server pass the debug flag correctly to the Email::Sender::Transport::SMTP->new constructor. To test: 1. Apply the regression tests patch 2. Run: $ kshell k$ prove t/db_dependent/Koha/SMTP/Server.t => FAIL: Oh noes! debug is not passed to the constructor! 3. Apply this patch 4. Repeat 2 => SUCCESS: Hey! It is being set! 5. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- Koha/SMTP/Server.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/SMTP/Server.pm b/Koha/SMTP/Server.pm index d5fec72611..7a2a40cb18 100644 --- a/Koha/SMTP/Server.pm +++ b/Koha/SMTP/Server.pm @@ -64,6 +64,7 @@ sub transport { $params->{sasl_password} = $self->password if $self->password; + $params->{debug} = $self->debug; my $transport = Email::Sender::Transport::SMTP->new( $params ); -- 2.39.5