-echo '<br>' .
- html_tag( 'table', '', 'center', '', 'width="100%" cellpadding="0" cellspacing="0" border="0"' ) . "\n" .
- html_tag( 'tr' ) .
- html_tag( 'td', '', 'left', $color[9], 'width="100%"' ) .
- html_tag( 'table', '', '', '', 'width="100%" cellpadding="3" cellspacing="0" border="0"' ) . "\n" .
- html_tag( 'tr' ) .
- html_tag( 'td', '', 'left', '', 'width="33%"' ) .
- '<small>' .
- '<a href="' . $base_uri . 'src/';
-
-if ($where && $what) {
- if ($pos == '') {
- $pos=0;
- }
- echo "search.php?where=".urlencode($where)."&pos=$pos&what=".urlencode($what)."&mailbox=$urlMailbox\">";
-} else {
- echo "right_main.php?sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\">";
-}
-echo _("Message List") .
- '</a> | ' .
- '<a href="' . $base_uri . "src/delete_message.php?mailbox=$urlMailbox&message=$passed_id&";
-if ($where && $what) {
- echo 'where=' . urlencode($where) . '&what=' . urlencode($what) . '">';
-} else {
- echo "sort=$sort&startMessage=$startMessage\">";
-}
-echo _("Delete") . '</a> ';
-if (($mailbox == $draft_folder) && ($save_as_draft)) {
- $comp_uri = $base_uri . "src/compose.php?mailbox=$mailbox&".
- "identity=$identity&send_to=$url_to_string&".
- "send_to_cc=$url_cc_string&send_to_bcc=$url_bcc_string&".
- "subject=$url_subj&mailprio=$priority_level&".
- "draft_id=$passed_id&ent_num=$ent_num";
-
- if ($compose_new_win == '1') {
- echo "<a href=\"javascript:void(0)\" onclick=\"comp_in_new(false,'$comp_uri')\"";
- } else {
- echo '| <a href="' . $comp_uri .'"';
- }
- echo '>'.
- _("Resume Draft") . '</a>';
-}
-if ($mailbox == $sent_folder) {
- $comp_uri = $base_uri . "src/compose.php?mailbox=$mailbox&".
- "identity=$identity&send_to=$url_to_string&".
- "send_to_cc=$url_cc_string&send_to_bcc=$url_bcc_string&".
- "subject=$url_subj&mailprio=$priority_level&".
- "ent_num=$ent_num&passed_id=$passed_id&edit_as_new=1";
-
- if ($compose_new_win == '1') {
- echo "<a href=\"javascript:void(0)\" onclick=\"comp_in_new(false,'$comp_uri')\"";
- } else {
- echo '| <a href="' . $comp_uri .'"';
- }
- echo '>'.
- _("Edit Message as New") . '</a>';
-}
-
-echo ' ' .
- '</small>' .
- '</td>' .
- html_tag( 'td', '', 'center', '', 'width="33%"' ) .
- '<small>';
-
-if ( !($where && $what) ) {
- if ($currentArrayIndex == -1) {
- echo 'Previous | Next';
- } else {
- $prev = findPreviousMessage($mbx_response['EXISTS']);
- $next = findNextMessage();
-
- if ($prev != -1) {
- echo '<a href="' . $base_uri . "src/read_body.php?passed_id=$prev&mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage&show_more=0\">" . _("Previous") . "</a> | ";
- } else {
- echo _("Previous") . ' | ';
- }
-
- if ($next != -1) {
- echo '<a href="' . $base_uri . "src/read_body.php?passed_id=$next&mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage&show_more=0\">" . _("Next") . "</a>";
- } else {
- echo _("Next");
- }
- }
-}
-
-echo '</small>' .
- '</td>' .
- html_tag( 'td', '', 'right', '', 'width="33%"' ) .
- '<small>' ;
-$comp_uri = $base_uri . "src/compose.php?forward_id=$passed_id&".
- "forward_subj=$url_subj&".
- ($default_use_priority?"mailprio=$priority_level&":'').
- "mailbox=$urlMailbox&ent_num=$ent_num";
-
-if ($compose_new_win == '1') {
- echo "<a href=\"javascript:void(0)\" onclick=\"comp_in_new(false,'$comp_uri')\"";
-} else {
- echo '| <a href="' . $comp_uri .'"';
-}
-
- echo '>'.
- _("Forward") .
- '</a> | ';
-
-$comp_uri = $base_uri . "src/compose.php?send_to=$url_replyto&".
- "reply_subj=$url_subj&".
- ($default_use_priority?"mailprio=$priority_level&":'').
- "reply_id=$passed_id&mailbox=$urlMailbox&ent_num=$ent_num";
-
-if ($compose_new_win == '1') {
- echo "<a href=\"javascript:void(0)\" onclick=\"comp_in_new(false,'$comp_uri')\"";
-} else {
- echo '| <a href="' . $comp_uri .'"';
-}
-
- echo '>'.
- _("Reply") .
- '</a> | ';
-
-$comp_uri = $base_uri . "src/compose.php?send_to=$url_replytoall&".
- "send_to_cc=$url_replytoallcc&reply_subj=$url_subj&".
- ($default_use_priority?"mailprio=$priority_level&":'').
- "reply_id=$passed_id&mailbox=$urlMailbox&ent_num=$ent_num";
-
-if ($compose_new_win == '1') {
- echo "<a href=\"javascript:void(0)\" onclick=\"comp_in_new(false,'$comp_uri')\"";
-} else {
- echo '| <a href="' . $comp_uri .'"';
-}
-
- echo '>'.
- _("Reply All") .
- '</a> ' .
- '</small>' .
- '</td>' .
- '</tr>' .
- '</table>' .
- '</td></tr>' .
- html_tag( 'tr' ) .
- html_tag( 'td', '', 'left', '', 'width="100%"' ) .
- html_tag( 'table', '', '', '', 'width="100%" border="0" cellspacing="0" cellpadding="3"' ) .
- html_tag( 'tr' ) . "\n";
-
-/** subject **/
-echo html_tag( 'td', _("Subject:"), 'right', $color[0], 'width="10%" valign="top"' ) .
- html_tag( 'td', '<b>' . $subject . '</b> ' . "\n", 'left', $color[0], 'width="80%" valign="top"' ) .
- html_tag( 'td', '', 'right', $color[0], 'rowspan="4" width="10%" valign="top" nowrap' ) .
- '<a href="' . $base_uri . "src/read_body.php?mailbox=$urlMailbox&passed_id=$passed_id&";
-
-/* From a search... */
-if ($where && $what) {
- echo 'where=' . urlencode($where) . '&what=' . urlencode($what) .
- "&view_hdr=1\">" . _("View Full Header") . "</a>\n";
-} else {
- echo "startMessage=$startMessage&show_more=$show_more&view_hdr=1\">" .
- _("View Full Header") . "</a>\n";
-}
-
-/* Output the printer friendly link if we are in subtle mode. */
-if ($pf_subtle_link) {
- echo printer_friendly_link(true);
-}
-
-do_hook("read_body_header_right");
-echo '</small></td>' .
- ' </tr>';
-
-/** from **/
-echo html_tag( 'tr') . "\n" .
- html_tag( 'td', _("From:"), 'right', $color[0], 'valign="top"' ) .
- html_tag( 'td', '', 'left', $color[0] ) .
- '<b>' . $from_name . '</b> ';
- do_hook("read_body_after_from");
-echo " \n" . '</td></tr>';
-/** date **/
-echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Date:"), 'right', $color[0], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . $dateString . '</b> ' . "\n" ,
- 'left', $color[0] )
- ) . "\n";
-/** to **/
-echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("To:"), 'right', $color[0], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . $to_string . '</b> ' . "\n" ,
- 'left', $color[0] )
- ) . "\n";
-/** cc **/
-if (isset($cc_string) && $cc_string <> '') {
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Cc:"), 'right', $color[0], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . $cc_string . '</b> ' . "\n" ,
- 'left', $color[0], 'colspan="2" valign="top"' )
- ) . "\n";
-}
-
-/** bcc **/
-if (isset($bcc_string) && $bcc_string <> '') {
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Bcc:"), 'right', $color[0], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . $bcc_string . '</b> ' . "\n" ,
- 'left', $color[0], 'colspan="2" valign="top"' )
- ) . "\n";
-}
-if ($default_use_priority && isset($priority_string) && $priority_string <> '' ) {
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Priority") . ':', 'right', $color[0], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . $priority_string . '</b> ' . "\n" ,
- 'left', $color[0], 'colspan="2" valign="top"' )
- ) . "\n";
-}
-
-if ($show_xmailer_default) {
- $mailer = $header->xmailer;
- if (trim($mailer)) {
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Mailer") . ':', 'right', $color[0], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . $mailer . '</b> ' ,
- 'left', $color[0], 'colspan="2" valign="top"' )
- ) . "\n";
- }
-}
-
-/* Output the printer friendly link if we are not in subtle mode. */
-if (!$pf_subtle_link) {
- echo printer_friendly_link(true);
-}
-
-if ($default_use_mdn) {
- if ($mdn_user_support) {
-
- // debug gives you the capability to remove mdn-flags
- // $MDNDebug = false;
-
- if ($header->dnt) {
- $MDN_to_o = $header->dnt;
- $MDN_to = $MDN_to_o->getAddress();
- } else {
- $MDN_to = '';
- }
-
- if ($MDN_to && (!isset( $sendreceipt ) || $sendreceipt == '' ) ) {
- if ( $message->is_mdnsent && $supportMDN) {
- $sendreceipt = 'removeMDN';
-
- $url = "\"read_body.php?mailbox=$mailbox&passed_id=$passed_id&startMessage=$startMessage&show_more=$show_more&sendreceipt=$sendreceipt\"";
- $sendreceipt='';
- /*
- if ($MDNDebug ) {
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Read receipt") . ':', 'right', $color[9], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . _("send") . '</b> <a href="' . $url . '">[' . _("Remove MDN flag") . '] </a> ' ,
- 'left', $color[9], 'colspan="2" valign="top"' )
- ) . "\n";
- } else {
- */
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Read receipt") . ':', 'right', $color[9], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . _("send") . '</b> ' ,
- 'left', $color[9], 'colspan="2" valign="top"' )
- ) . "\n";
- /*
- }
- */
-
- } // when deleted or draft flag is set don't offer to send a MDN response
- else if ( $message->is_draft || $message->is_deleted) {
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Read receipt") . ':', 'right', $color[9], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . _("requested") . '</b> ' ,
- 'left', $color[9], 'colspan="2" valign="top"' )
- ) . "\n";
- }
- // if no MDNsupport don't use the annoying popup messages
- else if ( !$FirstTimeSee ) {
- $sendreceipt = 'send';
- $url = "\"read_body.php?mailbox=$mailbox&passed_id=$passed_id&startMessage=$startMessage&show_more=$show_more&sendreceipt=$sendreceipt\"";
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Read receipt") . ':', 'right', $color[9], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . _("requested") . '</b> <a href="' . $url . '">[' . _("Send read receipt now") . ']</a>',
- 'left', $color[9], 'colspan="2" valign="top"' )
- ) . "\n";
- $sendreceipt='';
- }
- else {
- $sendreceipt = 'send';
- $url = "\"read_body.php?mailbox=$mailbox&passed_id=$passed_id&startMessage=$startMessage&show_more=$show_more&sendreceipt=$sendreceipt\"";
- if ($javascript_on) {
- echo "<script language=\"javascript\" type=\"text/javascript\"> \n" .
- '<!-- ' . "\n" .
- " if (window.confirm(\"" .
- _("The message sender has requested a response to indicate that you have read this message. Would you like to send a receipt?") .
- "\")) { \n" .
- ' window.open('.$url.',"right");' . "\n" .
- ' }' . "\n" .
- '// -->' . "\n" .
- '</script>' . "\n";
- }
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Read receipt") . ':', 'right', $color[9], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . _("requested") . '</b>  <a href="' . $url . '">[' . _("Send read receipt now") . ']</a>',
- 'left', $color[9], 'colspan="2" valign="top"' )
- ) . "\n";
- $sendreceipt = '';
- }
- }
-
- if ( !isset( $sendreceipt ) || $sendreceipt == '' ) {
- } else if ( $sendreceipt == 'send' ) {
- if ( !$MDN_flag_present) {
- if (isset($identity) ) {
- $final_recipient = getPref($data_dir, $username, 'email_address' . '0', '' );
- } else {
- $final_recipient = getPref($data_dir, $username, 'email_address', '' );
- }
-
-
- $final_recipient = trim($final_recipient);
- if ($final_recipient == '' ) {
- $final_recipient = getPref($data_dir, $username, 'email_address', '' );
- }
-
- if ( SendMDN( $MDN_to, $final_recipient, $message ) > 0 && $supportMDN ) {
- ToggleMDNflag( true);
- }
- ClearAttachments();
- }
- $sendreceipt = 'removeMDN';
- $url = "\"read_body.php?mailbox=$mailbox&passed_id=$passed_id&startMessage=$startMessage&show_more=$show_more&sendreceipt=$sendreceipt\"";
- $sendreceipt='';
- /*
- if ($MDNDebug && $supportMDN) {
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Read receipt") . ':', 'right', $color[9], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . _("send") . '</b>  <a href="' . $url . '">[' . _("Remove MDN flag") . ']</a>',
- 'left', $color[9], 'colspan="2" valign="top"' )
- ) . "\n";
- } else {
- */
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Read receipt") . ':', 'right', $color[9], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . _("send") . '</b> ',
- 'left', $color[9], 'colspan="2" valign="top"' )
- ) . "\n";
- /*
- }
- */
- }
- elseif ($sendreceipt == 'removeMDN' ) {
- ToggleMDNflag ( false );
-
- $sendreceipt = 'send';
- $url = "\"read_body.php?mailbox=$mailbox&passed_id=$passed_id&startMessage=$startMessage&show_more=$show_more&sendreceipt=$sendreceipt\"";
- echo html_tag( 'tr', "\n" .
- html_tag( 'td', _("Read receipt") . ':', 'right', $color[9], 'valign="top"' ) .
- html_tag( 'td',
- '<b>' . _("requested") . '</b> <a href="' . $url . '">[' . _("Send read receipt now") . ']</a>',
- 'left', $color[9], 'colspan="2" valign="top"' )
- ) . "\n";
- $sendreceipt = '';
-
- }
- }
-}
-
-do_hook('read_body_header');
-
-echo '</table>' .
- ' </td></tr>' .
- '</table>';
-flush();
-echo html_tag( 'table', "\n" .
- html_tag( 'tr', "\n" .
- html_tag( 'td', '<br>' . "\n" . $body . "\n", 'left', $color[4]
- )
- ) ,
- 'center', '', 'cellspacing=0 width="97%" border="0" cellpadding="0"') .
-
- html_tag( 'table', "\n" .
- html_tag( 'tr', "\n" .
- html_tag( 'td', ' ', 'left', $color[9]
- )
- ) ,
- 'center', '', 'cellspacing=0 width="100%" border="0" cellpadding="0"');