From cfe4a6baf462c0befa06b283366945130cabfa5b Mon Sep 17 00:00:00 2001 From: thomascube Date: Thu, 5 Jun 2008 17:35:12 +0000 Subject: Fix structure parsing and html output for multipart messages --- program/lib/imap.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'program/lib/imap.inc') 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; -- cgit v1.2.3