diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-10-24 18:08:53 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-10-24 18:08:53 +0000 |
| commit | 3a3866199aa316d3a075b76d09061f6963f8a177 (patch) | |
| tree | 2353223cf375a51906fd1fd6d16e196ecdc48e69 /roundcubemail/program/include/rcube_imap_generic.php | |
| parent | 316b45a2c2c387837d04d1938adaf0560e36c2bb (diff) | |
- 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
Diffstat (limited to 'roundcubemail/program/include/rcube_imap_generic.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap_generic.php | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
