alecpl
2010-03-05 2d08c50fd78e8ae74f27a2418f7909b18ae2bf42
program/lib/mime.inc
@@ -91,7 +91,8 @@
    $line = str_replace(")(", ") (", $line);
   $struct = iml_ParseBSString($line);
   if ((strcasecmp($struct[0], "message")==0) && (strcasecmp($struct[1], "rfc822")==0)){
   if (!is_array($struct[0]) && (strcasecmp($struct[0], "message")==0)
      && (strcasecmp($struct[1], "rfc822")==0)) {
      $struct = array($struct);
   }
    return $struct;
@@ -110,7 +111,7 @@
      //echo "m - part: $original_part current: $part rest: $rest array: ".implode(" ", $a)."<br>\n";
      return iml_GetPartArray($a[$part-1], $rest);
   }else if ($part>0){
      if ((strcasecmp($a[0], "message")==0) && (strcasecmp($a[1], "rfc822")==0)){
      if (!is_array($a[0]) && (strcasecmp($a[0], "message")==0) && (strcasecmp($a[1], "rfc822")==0)){
         $a = $a[8];
      }
      //echo "s - part: $part rest: $rest array: ".implode(" ", $a)."<br>\n";