summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-08-14 11:09:38 +0000
committerthomascube <thomas@roundcube.net>2008-08-14 11:09:38 +0000
commit43a27409ccbdd1ec4a50d14a42064892f3863671 (patch)
treee91b8f5889e9001c2c429531595a8b1b325bdcd3 /program/lib
parent1b5deba5fa2e39fc8d32294b0b71577e382357fa (diff)
Better fix for skipping untagged responses; should also work with long body structres (#1485261)
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/imap.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index da709faf3..42aa0fa61 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -2575,8 +2575,8 @@ function iil_C_FetchStructureString(&$conn, $folder, $id) {
do {
$line = iil_ReadLine($fp, 5000);
$line = iil_MultLine($fp, $line);
- list(, $index, $rest) = explode(' ', $line);
- if ($index == $id || preg_match("/^$key/", $line))
+ list(, $index, $cmd, $rest) = explode(' ', $line);
+ if ($cmd != 'FETCH' || $index == $id)
$result .= $line;
} while (!preg_match("/^$key/", $line));