summaryrefslogtreecommitdiff
path: root/roundcubemail/program/lib/imap.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-09-07 07:53:01 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-09-07 07:53:01 +0000
commit5faf94e01714e4b4e724187b0b81fa5a239b4982 (patch)
tree8ec10bf72a85116e1c10a95f653a223ca4eb5e6c /roundcubemail/program/lib/imap.inc
parentc5ff2013b3e84229d55323f2b13e9cdf404c9fa2 (diff)
- Fix roundcube hangs on empty inbox with bincimapd (#1486093)
git-svn-id: https://svn.roundcube.net/trunk@2929 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib/imap.inc')
-rw-r--r--roundcubemail/program/lib/imap.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc
index 02c9bd9b5..c640c56e4 100644
--- a/roundcubemail/program/lib/imap.inc
+++ b/roundcubemail/program/lib/imap.inc
@@ -1510,11 +1510,11 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false, $bo
preg_match('/ BODY\[HEADER.FIELDS \(.*?\)\]\s*(.*)$/s', $line, $m);
$reslines = explode("\n", trim($m[1], '"'));
// re-parse (see below)
- foreach ($reslines as $line) {
- if (ord($line[0])<=32) {
- $lines[$ln] .= (empty($lines[$ln])?'':"\n").trim($line);
+ foreach ($reslines as $resln) {
+ if (ord($resln[0])<=32) {
+ $l[$ln] .= (empty($lines[$ln])?'':"\n").trim($resln);
} else {
- $lines[++$ln] = trim($line);
+ $lines[++$ln] = trim($resln);
}
}
}
@@ -1668,7 +1668,7 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false, $bo
}
}
}
- } while (strcmp($a[0], $key) != 0);
+ } while (!iil_StartsWith($line, $key, true));
return $result;
}