734417
From 23d7f6ae0009ab5f2aa9887d1204a98de7fd2326 Mon Sep 17 00:00:00 2001
734417
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
734417
Date: Wed, 21 Mar 2018 14:50:08 +0100
734417
Subject: [PATCH 3/4] Fix PAUSE indexing problem
734417
MIME-Version: 1.0
734417
Content-Type: text/plain; charset=UTF-8
734417
Content-Transfer-Encoding: 8bit
734417
734417
Ported to Net::SMTP as found in Perl 5.16.3 from libnet upstream
734417
commits:
734417
734417
commit 4b426b971e4acf37fdbd08ffa88da4e6979fa133
734417
Author: Steve Hay <steve.m.hay@googlemail.com>
734417
Date:   Wed Oct 8 08:57:53 2014 +0100
734417
734417
    Fix PAUSE indexing problem
734417
734417
    Net::POP3::_SSLified and Net::SMTP::_SSLified are already used by
734417
    Net-SSLGlue.
734417
734417
commit 40a3dfc5c40a7fbe0a777a4af50978354e4903f4
734417
Author: Steve Hay <steve.m.hay@googlemail.com>
734417
Date:   Wed Oct 8 09:11:31 2014 +0100
734417
734417
    Fix PAUSE indexing problem again
734417
734417
    Sigh. Net::SMTP::SSL is already used by Net-SMTP-SSL.
734417
734417
This is to avoid clashes in name space when somebody uses Net-SSLGlue.
734417
734417
Signed-off-by: Petr Písař <ppisar@redhat.com>
734417
---
734417
 cpan/libnet/Net/SMTP.pm | 6 +++---
734417
 1 file changed, 3 insertions(+), 3 deletions(-)
734417
734417
diff --git a/cpan/libnet/Net/SMTP.pm b/cpan/libnet/Net/SMTP.pm
734417
index 7dbf3df..6475c86 100644
734417
--- a/cpan/libnet/Net/SMTP.pm
734417
+++ b/cpan/libnet/Net/SMTP.pm
734417
@@ -72,7 +72,7 @@ sub new {
734417
 
734417
   ${*$obj}{'net_smtp_arg'} = \%arg;
734417
   if ($arg{SSL}) {
734417
-    Net::SMTP::_SSLified->start_SSL($obj,SSL_verifycn_name => $host,%arg)
734417
+    Net::SMTP::_SSL->start_SSL($obj,SSL_verifycn_name => $host,%arg)
734417
       or return;
734417
   }
734417
 
734417
@@ -217,7 +217,7 @@ sub starttls {
734417
   my $self = shift;
734417
   $ssl_class or die $nossl_warn;
734417
   $self->_STARTTLS or return;
734417
-  Net::SMTP::_SSLified->start_SSL($self,
734417
+  Net::SMTP::_SSL->start_SSL($self,
734417
     %{ ${*$self}{'net_smtp_arg'} }, # (ssl) args given in new
734417
     @_   # more (ssl) args
734417
   ) or return;
734417
@@ -567,7 +567,7 @@ sub _STARTTLS { shift->command("STARTTLS", @_)->response() == CMD_OK }
734417
 
734417
 
734417
 {
734417
-  package Net::SMTP::_SSLified;
734417
+  package Net::SMTP::_SSL;
734417
   our @ISA = ( $ssl_class ? ($ssl_class):(), 'Net::SMTP' );
734417
   sub starttls { die "SMTP connection is already in SSL mode" }
734417
   sub start_SSL {
734417
-- 
734417
2.14.3
734417