J
Josef Möllers
Hi,
according to IMAPClient's manual page, it should be possible to access
an IMAP server via an SSL connection.
I tried:
($server is the right server name and $prot is "imaps", $user and
$password are also correct)
if ($prot eq "imaps") {
$port = getservbyname($prot, 'tcp');
my $s = IO::Socket::SSL->new(PeerAddr=>$host,
PeerPort => $port,
Proto => 'tcp');
die $@ unless defined $s;
$imap = Mail::IMAPClient->new(Socket => $s,
User => $user,
Password => $password,);
$imap->State($imap->Connected());
$imap->login or die $@;
but I get the error message
Use of uninitialized value in string eq at
/usr/lib/perl5/site_perl/5.8.1/Mail/IMAPClient.pm line 1435.
and then
Error sending '1 Login "XXXXXXXX" {12}
YYYYYYYYYYYY
' to IMAP: at Perl/IMAP.pl line 45
Error sending '1 Login "XXXXXXXX" {12}
YYYYYYYYYYYY
' to IMAP: at Perl/IMAP.pl line 45.
What am I doing wrong?
according to IMAPClient's manual page, it should be possible to access
an IMAP server via an SSL connection.
I tried:
($server is the right server name and $prot is "imaps", $user and
$password are also correct)
if ($prot eq "imaps") {
$port = getservbyname($prot, 'tcp');
my $s = IO::Socket::SSL->new(PeerAddr=>$host,
PeerPort => $port,
Proto => 'tcp');
die $@ unless defined $s;
$imap = Mail::IMAPClient->new(Socket => $s,
User => $user,
Password => $password,);
$imap->State($imap->Connected());
$imap->login or die $@;
but I get the error message
Use of uninitialized value in string eq at
/usr/lib/perl5/site_perl/5.8.1/Mail/IMAPClient.pm line 1435.
and then
Error sending '1 Login "XXXXXXXX" {12}
YYYYYYYYYYYY
' to IMAP: at Perl/IMAP.pl line 45
Error sending '1 Login "XXXXXXXX" {12}
YYYYYYYYYYYY
' to IMAP: at Perl/IMAP.pl line 45.
What am I doing wrong?