X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=7495032b10b60c4dedec3ba2121fcb2b5e56e5a3;hp=a98fbe45b587d1359c8dc6cb9078b7f77e7108b4;hb=7c612fdd06ef01a509e7691e2cf373e7910f1d48;hpb=1d20f9e1b1f2f28ec979e5b766a2debdd71f7ca3
diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php
index a98fbe45..7495032b 100644
--- a/functions/mailbox_display.php
+++ b/functions/mailbox_display.php
@@ -1,251 +1,291 @@
\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) || ($mailbox == $draft_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 "";
-
- echo "' .
- "$More | ";
- ShowSelectAllLink($startMessage, $sort);
- echo " | \n |
";
-
- /** The delete and move options */
- echo "";
-
- echo "\n |