summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap_generic.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-10-24 18:08:53 +0000
committeralecpl <alec@alec.pl>2011-10-24 18:08:53 +0000
commit1ae11998589900b4161aa4af59e50f31f64ddc66 (patch)
treea2666e33a36e03be2e2eebc55987b0116cceaf6e /program/include/rcube_imap_generic.php
parentb407e797c20f8d06a85fc90a831f9a8ec6237298 (diff)
- Improve handling of situation when FETCH returns OK, but no data
Diffstat (limited to 'program/include/rcube_imap_generic.php')
-rw-r--r--program/include/rcube_imap_generic.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index bcfaa812e..ecd2949d7 100644
--- a/program/include/rcube_imap_generic.php
+++ b/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