X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=0f6ab3c0a9b3833307d190576ff1b5822512a21f;hb=c42d080863c989d7b2e25339570af963d224a0e0;hp=09c354b9042a6642d4d57a71cf599a98e6d66ab4;hpb=a2ae47f74ade950239cdb7f72869a1d8671cd14c;p=squirrelmail.git diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 09c354b9..0f6ab3c0 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -1,257 +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) - { - $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 |
"; - - /** The delete and move options */ - echo " |
"; - - echo "\n |