当我尝试使用Perl打开IMAP连接时出现此错误。
没有SSL,它会打开IMAP连接,但是当我尝试使用SSL时,它不起作用。
我尝试过使用OpenSSL。它建立了与office365.outlook.com
的连接,但是当我从Perl尝试时,它表示socket已关闭。
C: \ > Perl "ok.pl"
Started at Thu Mar 5 19: 29: 13 2015
Using Mail::IMAPClient version 3.35 on perl 5.020001
Read: * BYE Autologout timer;
idle
for too long
ERROR: * BYE Autologout timer;
idle
for too long at C: /Perl/site / lib / Mail / IMAPCl
ient.pm line 1404.
Mail::IMAPClient::_get_response(Mail::IMAPClient = HASH(0x111220c), "*", "
PREAUTH") called at C: /Perl/site / lib / Mail / IMAPClient.pm line 401
Mail::IMAPClient::Socket(Mail::IMAPClient = HASH(0x111220c), IO::Socket::S SL = GLOB(0xa391ac)) called at C: /Perl/site / lib / Mail / IMAPClient.pm line 303
Mail::IMAPClient::new("Mail::IMAPClient", "Socket", IO::Socket::SSL = GLOB(0xa391ac), "User", "xx\xx.org", "Password", "xx\@123", "Debug",
1, ...) called at ok.pl line 18
Sending: 1 LOGIN xx@ xx.org xx@ 123
Sent 40 bytes
ERROR: socket closed
while reading data from server at C: /Perl/site / lib / Mail / IMA
PClient.pm line 1629.
Mail::IMAPClient::_read_line(Mail::IMAPClient = HASH(0x111220c)) called at
C: /Perl/site / lib / Mail / IMAPClient.pm line 1381
Mail::IMAPClient::_get_response(Mail::IMAPClient = HASH(0x111220c), 1, und ef) called at C: /Perl/site / lib / Mail / IMAPClient.pm line 1315
Mail::IMAPClient::_imap_command_do(Mail::IMAPClient = HASH(0x111220c), "LO
GIN xx\@xx.org xx\@123") called at C: /Perl/site / lib / Mail / IMAPClien
t.pm line 1214
Mail::IMAPClient::_imap_command(Mail::IMAPClient = HASH(0x111220c), "LOGIN
xx\@xx.org xx\@123") called at C: /Perl/site / lib / Mail / IMAPClient.p
m line 574
Mail::IMAPClient::login(Mail::IMAPClient = HASH(0x111220c)) called at ok.p
l line 26
ERROR: socket closed
while reading data from server at C: /Perl/site / lib / Mail / IMA
PClient.pm line 1263.
Mail::IMAPClient::_imap_command(Mail::IMAPClient = HASH(0x111220c), "LOGIN
xx\@xx.org xx\@123") called at C: /Perl/site / lib / Mail / IMAPClient.p
m line 574
Mail::IMAPClient::login(Mail::IMAPClient = HASH(0x111220c)) called at ok.p
l line 26
login(): socket closed
while reading data from server at ok.pl line 26.