X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=8e80efa69bfb6feba4dab4e51d4f322b4dbdf87c;hb=bdfb67f8c88976632ff76bd2b40ad9c74f2c4136;hp=c0ff48043302d601405018a8a727cf23059f2d6c;hpb=81caa0f36c5e11a62b31a437513d105997673ee9;p=squirrelmail.git diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index c0ff4804..8e80efa6 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -1,251 +1,257 @@ \n"; - - if (isset($msg['FLAG_FLAGGED']) && ($msg['FLAG_FLAGGED'] == true)) { - $flag = ""; - $flag_end = ''; - } else { - $flag = ''; - $flag_end = ''; - } - if (!isset($msg['FLAG_SEEN']) || ($msg['FLAG_SEEN'] == false)) { - $bold = ''; - $bold_end = ''; - } else { - $bold = ''; - $bold_end = ''; - } - - if (($mailbox == $sent_folder) || ($mailbox == $draft_folder)) { - $italic = ''; - $italic_end = ''; - } else { - $italic = ''; - $italic_end = ''; - } - - if (isset($msg['FLAG_DELETED']) && $msg['FLAG_DELETED']) { - $fontstr = ""; - $fontstr_end = ''; - } else { - $fontstr = ''; - $fontstr_end = ''; - } - - for ($i=0; $i < count($message_highlight_list); $i++) { - if (trim($message_highlight_list[$i]['value']) != '') { + } + } + $msg = $msgs[$key]; + + $senderName = htmlspecialchars(sqimap_find_displayable_name($msg['FROM'])); + if( $mailbox == 'None' ) { + // $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); + $boxes = sqimap_mailbox_list($imapConnection); + // sqimap_logout($imapConnection); + $mailbox = $boxes[0]['unformatted']; + unset( $boxes ); + } + $urlMailbox = urlencode($mailbox); + $subject = processSubject($msg['SUBJECT']); + echo "
$lMore$mMore$rMore | $Message |
$paginator_str | ". + "$msg_cnt_str |
";
-
- echo "
| ||
"; - - echo "\n |