From: lkehresman Date: Thu, 11 Jan 2001 01:12:41 +0000 (+0000) Subject: made deleted (but not expunged) messages easier to detect X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=eca500d04a3483d9d7430f1fa688c89318ef307c made deleted (but not expunged) messages easier to detect git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@927 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/ChangeLog b/ChangeLog index 9e069300..8477e515 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Version 1.0pre2 -- DEVELOPMENT ------------------------------ +- Made deleted (but not expunged) messages easier to detect (only if $auto_expunge = false) +- Fixed bug that didn't display size correctly in search results +- Major memory management and speed improvements with downloading of attachments - Made $auto_expunge variable actually do something - Fixed bug that didn't display login failure message - Fixed minor bug in sqimap_mailbox_list diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 925679d8..57d899b9 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -30,6 +30,7 @@ if ($msg["FLAG_FLAGGED"] == true) { $flag = ""; $flag_end = ""; } if ($msg["FLAG_SEEN"] == false) { $bold = ""; $bold_end = ""; } if ($mailbox == $sent_folder) { $italic = ""; $italic_end = ""; } + if ($msg["FLAG_DELETED"]) { $fontstr = ""; $fontstr_end = ""; } for ($i=0; $i < count($message_highlight_list); $i++) { if (trim($message_highlight_list[$i]["value"]) != "") { @@ -52,10 +53,10 @@ $search_stuff = "&where=".urlencode($where)."&what=".urlencode($what); } - if ($checkall == 1) - $checked = " checked"; - else - $checked = ""; + if ($checkall == 1) + $checked = " checked"; + else + $checked = ""; for ($i=1; $i <= count($index_order); $i++) { switch ($index_order[$i]) { @@ -63,10 +64,10 @@ echo " \n"; break; case 2: # from - echo " $italic$bold$flag$senderName$flag_end$bold_end$italic_end\n"; + echo " $italic$bold$flag$fontstr$senderName$fontstr_end$flag_end$bold_end$italic_end\n"; break; case 3: # date - echo "
$bold$flag".$msg["DATE_STRING"]."$flag_end$bold_end
\n"; + echo "
$bold$flag$fontstr".$msg["DATE_STRING"]."$fontstr_end$flag_end$bold_end
\n"; break; case 4: # subject echo " $bold$flag$subject$flag_end$bold_end\n"; @@ -95,7 +96,7 @@ echo "\n"; break; case 6: # size - echo " $bold".show_readable_size($msg['SIZE'])."$bold_end\n"; + echo " $bold$fontstr".show_readable_size($msg['SIZE'])."$fontstr_end$bold_end\n"; break; } } @@ -113,7 +114,7 @@ global $message_highlight_list; global $auto_expunge; - if ($auto_expunge == true) sqimap_mailbox_expunge($imapConnection, $mailbox, false); + if ($auto_expunge == true) sqimap_mailbox_expunge($imapConnection, $mailbox, false); sqimap_mailbox_select($imapConnection, $mailbox); if (!$use_cache) { @@ -395,16 +396,16 @@ echo "\n"; echo ""; - echo ""; + echo "
"; - echo "$More\n"; - if (!$startMessage) $startMessage=1; + echo "
"; + echo "$More\n"; + if (!$startMessage) $startMessage=1; if ( $checkall == "1") echo "\n" . _("Unselect All") . "\n"; else echo "\n" . _("Select All") . "\n"; - echo "
"; - echo "
"; + echo ""; echo ""; /** End of message-list table */ do_hook("mailbox_index_after"); @@ -422,8 +423,8 @@ $mailbox = '', $sort = -1, $Message = '', $More = '', $startMessage = 1) { global $color, $index_order, $auto_expunge, $move_to_trash; - global $checkall; - $urlMailbox = urlencode($mailbox); + global $checkall; + $urlMailbox = urlencode($mailbox); /** This is the beginning of the message list table. It wraps around all messages */ echo ""; @@ -434,15 +435,15 @@ } echo ""; /** The delete and move options */ echo "\n"; elseif ($sort != -1) echo " \n"; - echo ""; + echo ""; break; case 3: # date @@ -520,7 +521,7 @@ echo " \n"; elseif ($sort != -1) echo " \n"; - echo ""; + echo ""; break; case 4: # subject @@ -531,7 +532,7 @@ echo " \n"; elseif ($sort != -1) echo " \n"; - echo ""; + echo ""; break; case 6: # size
"; - echo ""; + echo "
"; - echo "$More\n"; + echo "
"; + echo "$More\n"; if ( $checkall == "1") echo "\n" . _("Unselect All") . "\n"; else echo "\n" . _("Select All") . "\n"; - echo "
"; - echo "
"; + echo "
"; @@ -507,7 +508,7 @@ echo "