File: IMAP4s.pm

package info (click to toggle)
libmail-box-imap4-perl 3.009-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: perl: 1,734; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 929 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyrights 2001-2025 by [Mark Overmeer].
#  For other contributors see ChangeLog.
# See the manual pages for details on the licensing terms.
# Pod stripped from pm file by OODoc 2.03.
# This code is part of distribution Mail-Box-IMAP4.  Meta-POD processed with
# OODoc into POD and HTML manual-pages.  See README.md
# Copyright Mark Overmeer.  Licensed under the same terms as Perl itself.

package Mail::Box::IMAP4s;{
our $VERSION = '3.009';
}

use base 'Mail::Box::IMAP4';

use strict;
use warnings;

use IO::Socket::IP;
use IO::Socket::SSL qw(SSL_VERIFY_NONE);


sub init($)
{   my ($self, $args) = @_;
    $args->{server_port} = 993;
	$args->{starttls}    = 0;
    $self->SUPER::init($args);
}

sub type() {'imap4s'}


sub createTransporter($@)
{   my ($self, $class, %args) = @_;
    $args{starttls} = 0;
    $args{ssl} ||= { SSL_verify_mode => SSL_VERIFY_NONE };
    $self->SUPER::createTransporter($class, %args);
}

1;