send-email: pass Debug to Net::SMTP::SSL::new
authorThomas Rast <tr@thomasrast.ch>
Sun, 1 Dec 2013 22:48:41 +0000 (23:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Dec 2013 19:45:27 +0000 (11:45 -0800)
We forgot to pass the Debug option through to Net::SMTP::SSL->new --
which is the same as Net::SMTP->new. This meant that with security
set to SSL, we would never enable debug output.

Pass through the flag.

Signed-off-by: Thomas Rast <tr@thomasrast.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl
index 3782c3b0cb4f9356790ae581c0d408dc4f4cae75..f7468b6366945d9e0447d554461cf546b31939eb 100755 (executable)
@@ -1217,6 +1217,7 @@ sub send_message {
                        $smtp ||= Net::SMTP::SSL->new($smtp_server,
                                                      Hello => $smtp_domain,
                                                      Port => $smtp_server_port,
                        $smtp ||= Net::SMTP::SSL->new($smtp_server,
                                                      Hello => $smtp_domain,
                                                      Port => $smtp_server_port,
+                                                     Debug => $debug_net_smtp,
                                                      ssl_verify_params());
                }
                else {
                                                      ssl_verify_params());
                }
                else {