X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=42bfada00a38b7090e9974582463c538da1e89c5;hb=856b2ee25a1cd7e05dd5ccdbe9d0e4744673351a;hp=e6e5f114431364407b4eeb1543070e7535ada174;hpb=d6def997ed1c35054ff1bb48c4a605c28dc0d549;p=squirrelmail.git diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index e6e5f114..42bfada0 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -1,255 +1,277 @@ \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]; + + /** + * This is done in case you're looking into Sent folders, + * because you can have multi receiver. + */ + $sendersName = split(',', $msg['FROM']); + $senderName = ''; + for ($index = 0 ; $index < count($sendersName) ; $index++) { + if ($senderName != '') { + $senderName .= ', '; + } + $senderName .= sqimap_find_displayable_name($sendersName[$index]); + } + + 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 "$lMore$mMore$rMore | \n"; - if (!$startMessage) $startMessage=1; - ShowSelectAllLink($startMessage, $sort); - - echo ' |
" .
+ "
|
$Message | ||
";
- echo '
| ||
"; - - echo "\n |