Subject: | top command fails with: warning unknown return string (id=4): |
Using Net-IMAP-Simple-1.2202
v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
Ubuntu (Lucid Lynx) - Linux mail3.tuskerdirect.com 2.6.32-46-server #108-Ubuntu SMP Thu Apr 11 16:11:15 UTC 2013 x86_64 GNU/Linux
my $imap = Net::IMAP::Simple->new('localhost', port => 993, use_ssl => 1, debug => 1) || die "Unable to connect to IMAP: $Net::IMAP::Simple::errstr\n";
if(!$imap->login(USER, PASS)) {
print STDERR "Login failed: " . $imap->errstr . "\n";
exit(64);
}
my $folder = "shared.general.testing";
my $nm = $imap->select($folder);
die "Failed to open folder $folder: ", $imap->errstr, "\n" if($imap->errstr);
for(my $i = 1; $i <= $nm; $i++) {
my $uid = $imap->uid($i);
die "UID Err for $i in $folder: " , $imap->errstr, "\n" if $imap->errstr;
my @top = $imap->top($i);
die "TOP Err for $i in $folder: " , $imap->errstr, "\n" if $imap->errstr;
}
Subject: | debug.txt |
DEBUG:
[...l/5.10.1/Net/IMAP/Simple.pm line 132 in sub _connect] connecting to localhost:993
[...l/5.10.1/Net/IMAP/Simple.pm line 132 in sub _connect] connected, returning socket
[./build_state.pl line 40 in sub new] waiting for socket ready
[./build_state.pl line 40 in sub new] looking for greeting
[./build_state.pl line 40 in sub new] got a greeting: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=LOGIN AUTH=PLAIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR] mail3 server ready\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1183 in sub _send_cmd] 0 LOGIN user "passwd"\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 264 in sub _process_cmd] 0 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY LOGINDISABLED AUTH=LOGIN AUTH=PLAIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 COMPRESS=DEFLATE IDLE] User logged in SESSIONID=<mail3-20524-1381146131-1>\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] 0 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY LOGINDISABLED AUTH=LOGIN AUTH=PLAIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 COMPRESS=DEFLATE IDLE] User logged in SESSIONID=<mail3-20524-1381146131-1>\r\n
Connected to IMAP.
[...l/5.10.1/Net/IMAP/Simple.pm line 1183 in sub _send_cmd] 1 STATUS "shared.general.testing" (UIDVALIDITY)\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 360 in sub _process_cmd] * STATUS shared.general.testing (UIDVALIDITY 1380818268)\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] * STATUS shared.general.testing (UIDVALIDITY 1380818268)\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 360 in sub _process_cmd] 1 OK Completed\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] 1 OK Completed\r\n
No Validity, build index for folder shared.general.testing
[...l/5.10.1/Net/IMAP/Simple.pm line 1183 in sub _send_cmd] 2 SELECT "shared.general.testing"\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 412 in sub _process_cmd] * 2 EXISTS\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] * 2 EXISTS\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 412 in sub _process_cmd] * 0 RECENT\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] * 0 RECENT\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 412 in sub _process_cmd] * FLAGS (\Answered \Flagged \Draft \Deleted \Seen)\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] * FLAGS (\Answered \Flagged \Draft \Deleted \Seen)\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 412 in sub _process_cmd] * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 412 in sub _process_cmd] * OK [UNSEEN 1] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] * OK [UNSEEN 1] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 412 in sub _process_cmd] * OK [UIDVALIDITY 1380818268] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] * OK [UIDVALIDITY 1380818268] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 412 in sub _process_cmd] * OK [UIDNEXT 3] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] * OK [UIDNEXT 3] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 412 in sub _process_cmd] * OK [HIGHESTMODSEQ 9] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] * OK [HIGHESTMODSEQ 9] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 412 in sub _process_cmd] * OK [URLMECH INTERNAL] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] * OK [URLMECH INTERNAL] Ok\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 412 in sub _process_cmd] 2 OK [READ-WRITE] Completed\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] 2 OK [READ-WRITE] Completed\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1183 in sub _send_cmd] 3 UID SEARCH 1\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 612 in sub _process_cmd] * SEARCH 1\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] * SEARCH 1\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 612 in sub _process_cmd] 3 OK Completed (1 msgs in 0.000 secs)\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] 3 OK Completed (1 msgs in 0.000 secs)\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1183 in sub _send_cmd] 4 FETCH 1 RFC822.HEADER\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 516 in sub _process_cmd] * 1 FETCH (RFC822.HEADER {925}\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [0] Return-Path: <fff@yyy.com>\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [1] Received: from mail3.yyy.com (localhost [127.0.0.1])\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [2] by mail3 with LMTPA;\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [3] Thu, 03 Oct 2013 17:50:50 +0100\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [4] X-Sieve: CMU Sieve 2.4\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [5] Received: from [10.1.129.211] (port=57082)\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [6] by mail3.yyy.com (mail3.yyy.com [10.1.0.2]:465)\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [7] with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256)\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [8] id 1VRm70-00068O-Ln (Exim build-3) for testing@yyy.com\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [9] (return-path <fff@yyy.com>); Thu, 03 Oct 2013 17:50:50 +0100\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [10] Message-ID: <524DA06A.2070000@yyy.com>\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [11] Date: Thu, 03 Oct 2013 17:50:50 +0100\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [12] From: David <fff@yyy.com>\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [13] Organization: yyy Ltd\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [14] User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [15] MIME-Version: 1.0\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [16] To: testing@yyy.com\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [17] Subject: test 1\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [18] Content-Type: multipart/alternative;\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [19] boundary="------------010001050006010903040408"\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [20] Lines: 195\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1197 in sub _read_multiline] [21] \r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 516 in sub _process_cmd] )\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] )\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1149 in sub _seterrstr] warning unknown return string (id=4): )\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 516 in sub _process_cmd] 4 OK Completed (0.000 sec)\r\n
[...l/5.10.1/Net/IMAP/Simple.pm line 1203 in sub _cmd_ok] 4 OK Completed (0.000 sec)\r\n
TOP Err for 1 in shared.general.testing: warning unknown return string (id=4): )