X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fmailbox_display.php;h=8e80efa69bfb6feba4dab4e51d4f322b4dbdf87c;hb=bdfb67f8c88976632ff76bd2b40ad9c74f2c4136;hp=30880ec99867ae6bdbd5db014b547bb5893e2b3b;hpb=77f70304824b4da10fd089fed21c29026d2c3fde;p=squirrelmail.git diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 30880ec9..8e80efa6 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -1,242 +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 "
'; - echo "$More | \n"; - if (!$startMessage) $startMessage=1; - ShowSelectAllLink($startMessage, $sort); - - echo ' |
$paginator_str | ". + "$msg_cnt_str |
$Message | ||
";
- echo '
| ||
"; - - echo "\n\n\n |