From e223df762ae099f0e48115aac257f97ead7deb13 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Mon, 18 Aug 2008 08:29:48 -0400 Subject: [PATCH] Fix bodystructure parsing (#1485280) --- program/lib/imap.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/lib/imap.inc b/program/lib/imap.inc index 42aa0fa..600b0d4 100644 --- a/program/lib/imap.inc +++ b/program/lib/imap.inc @@ -2580,7 +2580,7 @@ $result .= $line; } while (!preg_match("/^$key/", $line)); - $result = trim(substr($result, strpos($result, 'BODYSTRUCTURE')+13, -(strlen($result)-strrpos($result, $key)+1))); + $result = trim(substr($result, strpos($result, 'BODYSTRUCTURE')+13)); } } return $result; -- Gitblit v1.9.1