'."\n";
-echo ''."\n";
-echo '
'."\n";
+if (!$stripHTML) {
+ $returnValue .= "\n";
+ $returnValue .= ''."\n";
+ $returnValue .= ''."\n";
+ $returnValue .= '
'."\n";
+}
//session_register("entities");
@@ -296,15 +336,17 @@ echo '
'."\n";
//foreach ($keys as $key) {
// if (isset($entities[$key])) {
// if ($entities[$key]['encoding'] == 'base64') {
-// echo '
';
+// if (!$stripHTML) {
+// $returnValue .= 'img src="message_viewentity.php?ent='.$entities[$key]['entity'].'&name='.$entities[$key]['name'].'">
';
+// }
// }
// }
//}
//session_unregister("entities");
-if (count($content) > 0) {
- echo ''._("Bodystructure")."
\n\n";
- echo ''.
+if (count($content) > 0 && !$stripHTML) {
+ $returnValue .= ''._("Bodystructure")."
\n\n";
+ $returnValue .= ''.
''.
''._("Entity").' '.
''._("Content-Type").' '.
@@ -313,25 +355,36 @@ if (count($content) > 0) {
' '.
'';
for ($i = 0; $i < count($content);$i++) {
- echo '';
- echo $content[$i]['ent'].' ';
+ $returnValue .= ' ';
+ $returnValue .= $content[$i]['ent'].' ';
if (isset($content[$i]['type'])) {
- echo $content[$i]['type'];
- } else echo 'TEXT/PLAIN';
- echo ' ';
+ $returnValue .= $content[$i]['type'];
+ } else $returnValue .= 'TEXT/PLAIN';
+ $returnValue .= ' ';
if (isset($content[$i]['name'])) {
- echo $content[$i]['name'];
- } else echo ' ';
- echo ' ';
+ $returnValue .= $content[$i]['name'];
+ } else $returnValue .= ' ';
+ $returnValue .= ' ';
if (isset($content[$i]['encoding'])) {
- echo $content[$i]['encoding'];
- } else echo ' ';
- echo ' '."\n";
+ $returnValue .= $content[$i]['encoding'];
+ } else $returnValue .= ' ';
+ $returnValue .= ''."\n";
}
- echo '
'."\n";
+ $returnValue .= '
'."\n";
}
-echo ''._("RFC822 Message body")."
\n\n";
-echo ''."\n\n";
-echo $message_body;
-echo '