diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-05 17:35:12 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-05 17:35:12 +0000 |
| commit | 247039e1a2f5619009ed054733b320bba4038227 (patch) | |
| tree | cbd0d05d132a82a893d6c8b2e8af81796de52614 /roundcubemail/program/lib | |
| parent | 920713e287f23e582d4739db86dc177c1c26a2d1 (diff) | |
Fix structure parsing and html output for multipart messages
git-svn-id: https://svn.roundcube.net/trunk@1480 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib')
| -rw-r--r-- | roundcubemail/program/lib/imap.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc index 877e8a219..e2cd724da 100644 --- a/roundcubemail/program/lib/imap.inc +++ b/roundcubemail/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; |
