Thread (2 messages) flat view 2 messages, 2 authors, 2017-06-01

Re: [PATCH v2] send-email: Net::SMTP::SSL is obsolete, use only when necessary

From: Junio C Hamano <hidden>
Date: 2017-05-31 22:50:30

Dennis Kaarsemaker [off-list ref] writes:
Second ping. This problem is not going away, so if this solution is not
acceptable, I'd like to know what needs to be improved.
Perhaps you needed to actually test with older installation that
people have, it seems, between pings.  Immediately after this was
merged to 'master', we start getting bug reports X-<.

Eric Biggers' message 

    https://public-inbox.org/git/[ref]

seems to indicate that we should cut off at 3.01 not 1.28?

Thanks.
On Thu, 2017-05-04 at 09:01 +0200, Dennis Kaarsemaker wrote:
quoted
Ping. It's a little over a month since I sent this, but I haven't seen
any comments. Is this commit good to go?

On Fri, 2017-03-24 at 22:37 +0100, Dennis Kaarsemaker wrote:
quoted
Net::SMTP itself can do the necessary SSL and STARTTLS bits just fine
since version 1.28, and Net::SMTP::SSL is now deprecated. Since 1.28
isn't that old yet, keep the old code in place and use it when
necessary.
...
diff --git a/git-send-email.perl b/git-send-email.perl
index eea0a517f7..0d90439d9a 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -1353,10 +1353,12 @@ EOF
 			die __("The required SMTP server is not properly defined.")
 		}
 
+		require Net::SMTP;
+		my $use_net_smtp_ssl = version->parse($Net::SMTP::VERSION) < version->parse("1.28");
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help