thomascube
2008-08-18 e223df762ae099f0e48115aac257f97ead7deb13
Fix bodystructure parsing (#1485280)

1 files modified
2 ■■■ changed files
program/lib/imap.inc 2 ●●● patch | view | raw | blame | history
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;