summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-05 10:44:48 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-05 10:44:48 +0000
commitb2b2dc8b69a17b9cfc4398fd77d336e310ad5ed2 (patch)
treea65bbcf318508f874685374d6715cbe536fbd559 /roundcubemail/program
parent4b57b72cc69bc47c96c0eb05c22d36a92e1522f2 (diff)
Fix BODYSTRUCTURE response parsing: some servers respond like 'F1247 OK Completed (0.000 sec)'
git-svn-id: https://svn.roundcube.net/trunk@1477 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/lib/imap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc
index 0f3ac98f1..cec376859 100644
--- a/roundcubemail/program/lib/imap.inc
+++ b/roundcubemail/program/lib/imap.inc
@@ -2568,7 +2568,7 @@ function iil_C_FetchStructureString(&$conn, $folder, $id) {
$result .= $line;
} while (!preg_match("/^$key/", $line));
- $result = trim(substr($result, strpos($result, 'BODYSTRUCTURE')+13, -(strlen($result)-strrpos($result, ')')-1)));
+ $result = trim(substr($result, strpos($result, 'BODYSTRUCTURE')+13, -(strlen($result)-strrpos($result, $key)-2)));
}
}
return $result;