X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=b34b9145775ad2ef070512620023d801ace3578c;hb=d72204a235c593703fd68a2737016092806a95d7;hp=0947bc647e1dd41f9e6498c521392e925296f11b;hpb=91f68e943315d185d3d6477b46ad824a8fbea769;p=squirrelmail.git diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 0947bc64..b34b9145 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -1,236 +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 ' |
" .
+ "
|
$Message | ||
";
- echo '
| ||
"; - - echo "\n\n\n |