X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=645ec00a0c6b47f4fd7481748d2cd25c294320ab;hp=462116900eae0215e178a2e4bac7289d104ef609;hb=05207a68b0446f5da0e2e0aa86e9edbe85a40ada;hpb=df978e807f87dce0478a71a5c264743f65bee34a diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 46211690..645ec00a 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -8,22 +8,20 @@ ** **/ - function printMessageInfo($imapConnection, $t, $i, $from, $subject, $dateString, $answered, $seen) { + function printMessageInfo($imapConnection, $t, $i, $from, $subject, $dateString, $answered, $seen, $mailbox) { $senderName = getSenderName($from); - if (strlen(Chop($subject)) == 0) - $subject = "(no subject)"; - + $urlMailbox = urlencode($mailbox); echo "\n"; if ($seen == false) { echo " \n"; echo " $senderName\n"; echo "
$dateString
\n"; - echo " $subject\n"; + echo " $subject\n"; } else { echo " \n"; echo " $senderName\n"; echo "
$dateString
\n"; - echo " $subject\n"; + echo " $subject\n"; } echo "\n"; } @@ -177,7 +175,7 @@ /** The delete and move options */ echo ""; - echo "
"; + echo ""; echo ""; echo ""; if (($move_to_trash == true) && ($mailbox == $trash_folder)) @@ -220,10 +218,10 @@ echo "

THIS FOLDER IS EMPTY
 
"; } else if ($startMessage == $endMessage) { // if there's only one message in the box, handle it different. $i = $startMessage - 1; - printMessageInfo($imapConnection, $t, $msgs[$i]["ID"], $msgs[$i]["FROM"], $msgs[$i]["SUBJECT"], $msgs[$i]["DATE_STRING"], $msgs[$i]["FLAG_ANSWERED"], $msgs[$i]["FLAG_SEEN"]); + printMessageInfo($imapConnection, $t, $msgs[$i]["ID"], $msgs[$i]["FROM"], $msgs[$i]["SUBJECT"], $msgs[$i]["DATE_STRING"], $msgs[$i]["FLAG_ANSWERED"], $msgs[$i]["FLAG_SEEN"], $mailbox); } else { for ($i = $startMessage - 1;$i <= $endMessage - 1; $i++) { - printMessageInfo($imapConnection, $t, $msgs[$i]["ID"], $msgs[$i]["FROM"], $msgs[$i]["SUBJECT"], $msgs[$i]["DATE_STRING"], $msgs[$i]["FLAG_ANSWERED"], $msgs[$i]["FLAG_SEEN"]); + printMessageInfo($imapConnection, $t, $msgs[$i]["ID"], $msgs[$i]["FROM"], $msgs[$i]["SUBJECT"], $msgs[$i]["DATE_STRING"], $msgs[$i]["FLAG_ANSWERED"], $msgs[$i]["FLAG_SEEN"], $mailbox); $t++; } }