|
@@ -120,9 +120,13 @@ function ListBoxes ($boxes, $j=0 ) {
|
|
|
|
|
|
/* If there are unseen message, bold the line. */
|
|
/* If there are unseen message, bold the line. */
|
|
if (($move_to_trash) && ($mailbox == $trash_folder)) {
|
|
if (($move_to_trash) && ($mailbox == $trash_folder)) {
|
|
- if (! isset($boxes->total)) {
|
|
|
|
- $boxes->total = sqimap_status_messages($imapConnection, $mailbox);
|
|
|
|
|
|
+
|
|
|
|
+ if ( !is_numeric($boxes->total) ) {
|
|
|
|
+ $result = sqimap_status_messages($imapConnection, $mailbox);
|
|
|
|
+ $boxes->total = $result['MESSAGES'];
|
|
|
|
+ $boxes->unseen = $result['UNSEEN'];
|
|
}
|
|
}
|
|
|
|
+
|
|
$pre .= "<a href=\"right_main.php?PG_SHOWALL=0&startMessage=1&mailbox=$mailboxURL\" target=\"right\" style=\"text-decoration:none\">";
|
|
$pre .= "<a href=\"right_main.php?PG_SHOWALL=0&startMessage=1&mailbox=$mailboxURL\" target=\"right\" style=\"text-decoration:none\">";
|
|
if ($unseen > 0) {
|
|
if ($unseen > 0) {
|
|
$pre .= '<b>';
|
|
$pre .= '<b>';
|
|
@@ -134,7 +138,7 @@ function ListBoxes ($boxes, $j=0 ) {
|
|
if ($unseen_found) {
|
|
if ($unseen_found) {
|
|
$end .= " <small>$unseen_string</small>";
|
|
$end .= " <small>$unseen_string</small>";
|
|
}
|
|
}
|
|
- $end .= "\n\t<small>" .
|
|
|
|
|
|
+ $end .= "\n<small>" .
|
|
' [<a href="empty_trash.php">'._("Purge").'</a>]'.
|
|
' [<a href="empty_trash.php">'._("Purge").'</a>]'.
|
|
'</small>';
|
|
'</small>';
|
|
}
|
|
}
|