set uid_support to true so we can track down errors quicker if SM-1.3.0 is
[squirrelmail.git] / functions / mime.php
index d4ac2e735dc1639724de9841082f4e1cec96fdca..72dc3cdebc610c90327d4fefbbcac615bb9a15c7 100644 (file)
@@ -30,7 +30,8 @@ function mime_structure ($bodystructure, $flags=array()) {
     $read = trim(substr ($bodystructure, strpos(strtolower($bodystructure), 'bodystructure') + 13));
     $msg = &new message();
     $read = trim(substr ($read, 0, -1));
-    $msg = $msg->parseStructure($read,0);
+    $res = $msg->parseStructure($read);
+    $msg = $res[0];
     $msg->setEnt('0');
     if (count($flags)) {
        foreach ($flags as $flag) {