X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=fadc568487e4fc8cb1825da675ee38534f7affae;hb=43fdb2a474b990b8b7db21bfb05b30a70ac768a0;hp=f597b2df22840214e7dffa4b5a9dd9cea1fa739f;hpb=69c1c5c1ad60518b6b3d051245f26260e67e5fd6;p=squirrelmail.git diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index f597b2df..fadc5684 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -1,258 +1,275 @@ \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 "$More | \n"; - if (!$startMessage) $startMessage=1; - ShowSelectAllLink($startMessage, $sort); - - echo ' |
" .
+ "
|
$Message | ||
";
- echo '
| ||
"; - - echo "\n\n\n |