git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
Date
Mar 18, 2017, 23:14 UTC
Message-ID
<1489878863.24742.3.camel@kaarsemaker.net>
In-Reply-To
<CACBZZX5j1dYk8aeRED7T7iJ=b32aFUpfUWPpMpmtofBL3QnVXQ@mail.gmail.com>
On Sat, 2017-03-18 at 23:47 +0100, Ævar Arnfjörð Bjarmason wrote:
Show 11 quoted lines
> On Sat, Mar 18, 2017 at 11:23 PM, Dennis Kaarsemaker
> <dennis@kaarsemaker.net> wrote:
>
> > +               require Net::SMTP;
> > +               my $use_net_smtp_ssl = $Net::SMTP::VERSION lt "1.28";
> > +               $smtp_domain ||= maildomain();
> > +
> 
> While Net::SMTP is unlikely to change its versioning scheme, let's use
> comparisons via the version module here in case they do change it to
> something silly, and this ends up introducing a bug.
ok.
Show 5 quoted lines
> > [...]
> > +                                       if ($smtp->code != 220) {
> > +                                               die sprintf(__("Server does not support STARTTLS! %s"), $smtp->message);
> 
> Here a new message you're adding gets __(), makes sense.
Didn't add it, it just moved from a bit further below :)
Show 7 quoted lines
> > +                               else {
> > +                                       $smtp->starttls(ssl_verify_params())
> > +                                               or die "STARTTLS failed! ".IO::Socket::SSL::errstr();
> > +                               }
> 
> I see you just copied that from above but I wonder if it makes sense
> to just mark both occurrences with __() too while we're at it.
ok.
D.
Previous: Ævar Arnfjörð BjarmasonNext: Dennis Kaarsemaker
Message 7 of 16 in “Remove dependency on deprecated Net::SMTP::SSL”
  1. Remove dependency on deprecated Net::SMTP::SSLMike Fisher, Nov 20, 2016
  2. brian m. carlsonNov 20, 2016
  3. Renato BotelhoJan 13, 2017
  4. Torsten BögershausenNov 21, 2016
  5. send-email: Net::SMTP::SSL is obsolete, use only when necessaryDennis Kaarsemaker, Mar 18, 2017
  6. Ævar Arnfjörð BjarmasonMar 18, 2017
  7. Dennis KaarsemakerMar 18, 2017
  8. send-email: Net::SMTP::SSL is obsolete, use only when necessaryDennis Kaarsemaker, Mar 24, 2017
  9. Dennis KaarsemakerMay 4, 2017
  10. Dennis KaarsemakerMay 19, 2017
  11. Ævar Arnfjörð BjarmasonMay 20, 2017
  12. Junio C HamanoMay 31, 2017
  13. Dennis KaarsemakerJun 1, 2017
  14. Jonathan NiederMay 31, 2017
  15. Junio C HamanoMay 31, 2017
  16. Jonathan NiederMay 31, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.