+ /* body */
+ if (!$stripHTML) {
+ $returnValue .= "<body text=\"$color[8]\" bgcolor=\"$color[4]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n";
+ $returnValue .= '<font face="monospace">'."\n";
+ $returnValue .= '<br />'."\n";
+ }
+
+ if (count($content) > 0 && !$stripHTML) {
+ $returnValue .= '<h2>'._("Bodystructure")."</h2>\n\n";
+ $returnValue .= '<table border="1" width="98%"><thead>'.
+ '<tr bgcolor="'.$color[7].'">'.
+ '<td><b><font color="'.$color[5].'">'._("Entity").'</font></b></td>'.
+ '<td><b><font color="'.$color[5].'">'._("Content-Type").'</font></b></td>'.
+ '<td><b><font color="'.$color[5].'">'._("Name").'</font></b></td>'.
+ '<td><b><font color="'.$color[5].'">'._("Encoding").'</font></b></td>'.
+ '</tr>'.
+ '</thead><tbody>';
+ for ($i = 0; $i < count($content);$i++) {
+ $returnValue .= '<tr><td>';
+ $returnValue .= $content[$i]['ent'].'</td><td>';
+ if (isset($content[$i]['type'])) {
+ $returnValue .= $content[$i]['type'];
+ } else $returnValue .= 'TEXT/PLAIN';
+ $returnValue .= '</td><td>';
+ if (isset($content[$i]['name'])) {
+ $returnValue .= $content[$i]['name'];
+ } else $returnValue .= ' ';
+ $returnValue .= '</td><td>';
+ if (isset($content[$i]['encoding'])) {
+ $returnValue .= $content[$i]['encoding'];
+ } else $returnValue .= ' ';
+ $returnValue .= '</td></tr>'."\n";
+ }
+ $returnValue .= '</tbody></table><br />'."\n";
+ }