| 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 | 1 | our $VERSION = '4.01'; | |||||||||||
| 14 | } | ||||||||||||
| 15 | |||||||||||||
| 16 | 1 | ▶ | use parent 'Mail::Box::IMAP4'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 17 | |||||||||||||
| 18 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 19 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 20 | |||||||||||||
| 21 | 1 | ▶ | use Log::Report 'mail-box-imap4', import => []; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 22 | |||||||||||||
| 23 | 1 | ▶ | use IO::Socket::SSL qw/SSL_VERIFY_NONE/; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 24 | |||||||||||||
| 25 | #-------------------- | ||||||||||||
| 26 | |||||||||||||
| 27 | sub init($) | ||||||||||||
| 28 | 0 | ▶ | { my ($self, $args) = @_; | ||||||||||
|
Subroutine
init: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 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 | ▶ | { my ($self, $class, %args) = @_; | ||||||||||
|
Subroutine
createTransporter: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 38 | 0 | $args{starttls} = 0; | |||||||||||
| 39 | 0 | ▶ | $args{ssl} ||= +{ SSL_verify_mode => SSL_VERIFY_NONE }; | ||||||||||
|
Condition0%0/2
$args{"ssl"} ||= {"SSL_verify_mode", 0}
MC/DC0%0/1
$args{"ssl"} ||= {"SSL_verify_mode", 0}
$args{"ssl"}
Truth table0%0/2
A
A= $args{"ssl"}
| |||||||||||||
| 40 | 0 | $self->SUPER::createTransporter($class, %args); | |||||||||||
| 41 | } | ||||||||||||
| 42 | |||||||||||||
| 43 | 1 | 1; | |||||||||||