summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-06-05 17:35:12 +0000
committerthomascube <thomas@roundcube.net>2008-06-05 17:35:12 +0000
commitcfe4a6baf462c0befa06b283366945130cabfa5b (patch)
tree83d74e1c6fa50a71c4e893359630de247bc5c05a /program/lib
parent077070381f4e97e98c5edf3ce6b456c4c57d057d (diff)
Fix structure parsing and html output for multipart messages
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/imap.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 877e8a219..e2cd724da 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -2570,8 +2570,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, $key)-2)));
+ $result = trim(substr($result, strpos($result, 'BODYSTRUCTURE')+13, -(strlen($result)-strrpos($result, $key)+1)));
}
}
return $result;