diff options
Diffstat (limited to 'program/lib')
-rw-r--r-- | 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 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; |