File Coverage

blib/lib/Mail/Box/IMAP4s.pm
Criterion Covered Total %
statement 15 23 65.2
branch n/a
condition 0 2 0.0
subroutine 5 7 71.4
pod 1 2 50.0
total 21 34 61.7


line stmt bran cond sub pod time code
1             # This code is part of Perl distribution Mail-Box-IMAP4 version 4.01.
2             # The POD got stripped from this file by OODoc version 3.05.
3             # For contributors see file ChangeLog.
4              
5             # This software is copyright (c) 2001-2025 by Mark Overmeer.
6              
7             # This is free software; you can redistribute it and/or modify it under
8             # the same terms as the Perl 5 programming language system itself.
9             # SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later
10              
11              
12             package Mail::Box::IMAP4s;{
13             our $VERSION = '4.01';
14             }
15              
16 1     1   1542 use parent 'Mail::Box::IMAP4';
  1         3  
  1         8  
17              
18 1     1   103 use strict;
  1         2  
  1         33  
19 1     1   7 use warnings;
  1         2  
  1         75  
20              
21 1     1   8 use Log::Report 'mail-box-imap4', import => [];
  1         2  
  1         9  
22              
23 1     1   1650 use IO::Socket::SSL qw/SSL_VERIFY_NONE/;
  1         123923  
  1         12  
24              
25             #--------------------
26              
27             sub init($)
28 0     0 0   { my ($self, $args) = @_;
29 0           $args->{server_port} = 993;
30 0           $args->{starttls} = 0;
31 0           $self->SUPER::init($args);
32             }
33              
34             sub type() {'imap4s'}
35              
36             sub createTransporter($@)
37 0     0 1   { my ($self, $class, %args) = @_;
38 0           $args{starttls} = 0;
39 0   0       $args{ssl} ||= +{ SSL_verify_mode => SSL_VERIFY_NONE };
40 0           $self->SUPER::createTransporter($class, %args);
41             }
42              
43             1;