|
@@ -393,12 +393,14 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma
|
|
|
translateText($body, $wrap_at,
|
|
|
$body_message->header->getParameter('charset'));
|
|
|
}
|
|
|
- $link = 'read_body.php?passed_id=' . $id . '&ent_id='.$ent_num.
|
|
|
+ $link = 'passed_id=' . $id . '&ent_id='.$ent_num.
|
|
|
'&mailbox=' . $urlmailbox .'&sort=' . $sort .
|
|
|
'&startMessage=' . $startMessage . '&show_more=0';
|
|
|
if (isset($passed_ent_id)) {
|
|
|
$link .= '&passed_ent_id='.$passed_ent_id;
|
|
|
}
|
|
|
+ $body .= '<center><small><a href="download.php?absolute_dl=true&' .
|
|
|
+ $link . '">' . _("Download this as a file") . '</a>';
|
|
|
if ($view_unsafe_images) {
|
|
|
$text = _("Hide Unsafe Images");
|
|
|
} else {
|
|
@@ -409,8 +411,10 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma
|
|
|
$text = '';
|
|
|
}
|
|
|
}
|
|
|
- $body .= '<center><small><a href="'.$link.'">'.$text.
|
|
|
- '</a></small></center><br>' . "\n";
|
|
|
+ if($text != '') {
|
|
|
+ $body .= ' | <a href="read_body.php?' . $link . '">' . $text . '</a>';
|
|
|
+ }
|
|
|
+ $body .= '</small></center><br>' . "\n";
|
|
|
}
|
|
|
return $body;
|
|
|
}
|