Bug 29427: Make SMTP transport set debug mode correctly
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 Nov 2021 15:50:35 +0000 (12:50 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 8 Nov 2021 11:16:31 +0000 (12:16 +0100)
commitb0767f94d07950e7420deb901b208d131427c535
tree2df4ed45355c18448ce351f6af2aa830db3584f7
parentf6b6bdb96f4cab0677402194db7e6408feb6fca6
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 <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/SMTP/Server.pm