From cfe4a6baf462c0befa06b283366945130cabfa5b Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Thu, 05 Jun 2008 13:35:12 -0400 Subject: [PATCH] Fix structure parsing and html output for multipart messages --- program/lib/imap.inc | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/program/lib/imap.inc b/program/lib/imap.inc index 877e8a2..e2cd724 100644 --- a/program/lib/imap.inc +++ b/program/lib/imap.inc @@ -2570,8 +2570,7 @@ $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; -- Gitblit v1.9.1