send-email: Net::SMTP::starttls was introduced in v2.34
authorJonathan Nieder <redacted>
Thu, 1 Jun 2017 00:17:43 +0000 (17:17 -0700)
committerJunio C Hamano <redacted>
Thu, 1 Jun 2017 02:23:35 +0000 (11:23 +0900)
commitbfbfc9a953d8e26b029110c05581b22f9f0d77e9
treead353ceee5872dbb2ea6980cc7d59d61b5b7a402
parent0ead000c3aca13a10ae51a3c74c866981e0d33b8
send-email: Net::SMTP::starttls was introduced in v2.34

We cannot rely on the starttls method being present in Net::SMTP until
c274b798e6881a941d941808c6d89966975cb8c8 (Merge branch 'ipv6_ssl' of
https://github.com/noxxi/perl-libnet into noxxi-ipv6_ssl, 2014-06-02),
which set the module version to 2.34.

This version was first shipped as part of perl in v5.21.5~169 (Update
libnet to CPAN version 3.01, 2014-10-10).

Noticed on an Ubuntu system with perl 5.18.2-2ubuntu1.1, which
provides Net::SMTP version 2.31. The error message is

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

Reported-by: Brandon Williams <redacted>
Reported-and-tested-by: Eric Biggers <redacted>
Signed-off-by: Jonathan Nieder <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-send-email.perl
git clone https://git.99rst.org/PROJECT