From 3a3866199aa316d3a075b76d09061f6963f8a177 Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 24 Oct 2011 18:08:53 +0000 Subject: - Improve handling of situation when FETCH returns OK, but no data git-svn-id: https://svn.roundcube.net/trunk@5363 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_imap_generic.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'roundcubemail/program/include/rcube_imap_generic.php') diff --git a/roundcubemail/program/include/rcube_imap_generic.php b/roundcubemail/program/include/rcube_imap_generic.php index bcfaa812e..ecd2949d7 100644 --- a/roundcubemail/program/include/rcube_imap_generic.php +++ b/roundcubemail/program/include/rcube_imap_generic.php @@ -2393,8 +2393,10 @@ class rcube_imap_generic $len = strlen($line); $result = false; + if ($a[2] != 'FETCH') { + } // handle empty "* X FETCH ()" response - if ($line[$len-1] == ')' && $line[$len-2] != '(') { + else if ($line[$len-1] == ')' && $line[$len-2] != '(') { // one line response, get everything between first and last quotes if (substr($line, -4, 3) == 'NIL') { // NIL response -- cgit v1.2.3