Dancer-SearchApp
view release on metacpan or search on metacpan
bin/index-imap.pl view on Meta::CPAN
return $imap if $imap and $imap->IsConnected;
my %imap_config = (
Server => $config->{imap}->{server},
Port => $config->{imap}->{port},
User => $config->{imap}->{username},
Password => $config->{imap}->{password},
Debug => $config->{imap}->{debug},
);
use IO::Socket::SSL;
#$IO::Socket::SSL::DEBUG = 3; # all
my $socket = IO::Socket::SSL->new
( Proto => 'tcp',
PeerAddr => $imap_config{ Server },
PeerPort => $imap_config{ Port },
SSL_verify_mode => SSL_VERIFY_NONE, # Yes, I know ...
) or die "No socket to $imap_config{ Server }:$imap_config{ Port }";
CONNECT:
my $retry = 0;
$imap = Mail::IMAPClient->new(
#%imap_config,
( run in 1.917 second using v1.01-cache-2.11-cpan-4d50c553e7e )