| ';
- $body .= "$display_filename | ";
- $body .= '' . show_readable_size($message->header->size) .
- ' | ';
- $body .= "[ $type0/$type1 ] | ";
- $body .= '';
- if ($message->header->description)
- $body .= '' . htmlspecialchars($message->header->description) . '';
- $body .= ' | ';
-
-
- $SkipSpaces = 1;
- foreach ($Links as $Val)
- {
- if ($SkipSpaces)
- {
- $SkipSpaces = 0;
- }
- else
- {
- $body .= ' | ';
- }
- $body .= '' . $Val['text'] . '';
- }
-
- unset($Links);
-
- $body .= " |
\n";
+ }
+ $body .= "";
+ } else {
+ $body = formatAttachments ($message, -1, $message->header->mailbox, $id);
+ }
+ return ($body);
+}
+
+/*
+ * A recursive function that returns a list of attachments with links
+ * to where to download these attachments
+ */
+function formatAttachments ($message, $ent_id, $mailbox, $id) {
+ global $where, $what;
+ global $startMessage, $color;
+ static $ShownHTML = 0;
+
+ $body = "";
+ if ($ShownHTML == 0) {
+ $ShownHTML = 1;
+
+ $body .= "