]> git.koha-community.org Git - koha.git/commit
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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Fri, 17 Dec 2021 13:08:27 +0000 (13:08 +0000)
commitd7f2e5bcc474af1733d7e3ad27eb2e926ebf3f51
treef3293b869e2db20d1923b0c79929fe4be7b17766
parent1f9e608ffb2119d267f814766d6e0eb05358a5dc
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>
(cherry picked from commit b0767f94d07950e7420deb901b208d131427c535)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/SMTP/Server.pm