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

2 messages, 2 authors, 2017-05-31 · open the first message on its own page

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

From: Junio C Hamano <hidden>
Date: 2017-05-31 22:39:27

Jonathan Nieder [off-list ref] writes:
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.
This broke git send-email for me.  The error message is

  Can't locate object method "starttls" via package "Net::SMTP" at /usr/lib/git-core/git-send-email line 1410.

Is 1.28 the right minimum version?

  $ perl -e 'require Net::SMTP; print version->parse($Net::SMTP::VERSION); print "\n"'
  2.31
  $ grep VERSION /usr/share/perl/5.18.2/Net/SMTP.pm
  use vars qw($VERSION @ISA);
  $VERSION = "2.31";
  $ grep starttls /usr/share/perl/5.18.2/Net/SMTP.pm
  $ dpkg-query -W perl
  perl    5.18.2-2ubuntu1.1
Thanks.  

Let's revert the merge for now until we know (this time for certain)
what the minimum version is.

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

From: Jonathan Nieder <hidden>
Date: 2017-05-31 22:53:59

Hi,

Jun 01, 2017 at 07:39:16AM +0900, Junio C Hamano wrote:
Jonathan Nieder [off-list ref] writes:
quoted
This broke git send-email for me.  The error message is

  Can't locate object method "starttls" via package "Net::SMTP" at /usr/lib/git-core/git-send-email line 1410.

Is 1.28 the right minimum version?

  $ perl -e 'require Net::SMTP; print version->parse($Net::SMTP::VERSION); print "\n"'
[...]
quoted
  $ grep starttls /usr/share/perl/5.18.2/Net/SMTP.pm
  $ dpkg-query -W perl
  perl    5.18.2-2ubuntu1.1
Thanks.

Let's revert the merge for now until we know (this time for certain)
what the minimum version is.
Thanks.  I just sent
http://public-inbox.org/git/20170531224415.GC81679@aiede.mtv.corp.google.com
in response to another thread.  That uses 3.01 as minimum version,
since it is the minimum version imported to core perl with starttls
support.

I haven't tried testing with historical Net::SMTP versions, though.
Is there a git repository available with all Net::SMTP versions from
CPAN, or is https://perl5.git.perl.org/perl.git as good as it gets?

Regards,
Jonathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help