$line .= " <small>$unseen_string</small>";
}
- /* If it's the trash folder, show a purge link when needed */
+ /* If it's the trash folder, show a purge link */
if (($move_to_trash) && ($real_box == $trash_folder)) {
- if (! isset($numMessages)) {
- $numMessages = sqimap_get_num_messages($imapConnection, $real_box);
- }
-
- if (($numMessages > 0) or ($box_array['parent'] == 1)) {
- $urlMailbox = urlencode($real_box);
- $line .= "\n<small>\n" .
- ' [<a href="empty_trash.php">'._("Purge").'</a>]' .
- '</small>';
- }
+ $urlMailbox = urlencode($real_box);
+ $line .= "\n<small>\n" .
+ ' [<a href="empty_trash.php">'._("Purge").'</a>]' .
+ '</small>';
}
if ($unseen_found) {
$end .= " <small>$unseen_string</small>";
}
- $end .= "\n<small>\n" .
- ' [<a href="empty_trash.php">'._("Purge").'</a>]'.
- '</small>';
}
+ $end .= "\n<small>\n" .
+ ' [<a href="empty_trash.php">'._("Purge").'</a>]'.
+ '</small>';
} else {
if (!$boxes->is_noselect) {
if ($unseen > 0) {
}
if (($move_to_trash) && ($mailbox == $trash_folder)) {
- if (! isset($numMessages)) {
- $numMessages = $boxes->total;
- }
$pre = "<a class=\"mbx_link\" href=\"right_main.php?PG_SHOWALL=0&startMessage=1&mailbox=$mailboxURL\" target=\"right\">" . $pre;
$end .= '</a>';
- if ($numMessages > 0) {
- $end .= "\n<small>\n" .
- ' [<a class="mbx_link" href="empty_trash.php">'._("Purge").'</a>]'.
- '</small>';
- }
+ $end .= "\n<small>\n" .
+ ' [<a class="mbx_link" href="empty_trash.php">'._("Purge").'</a>]'.
+ '</small>';
} else {
if (!$boxes->is_noselect) { /* \Noselect boxes can't be selected */
$pre = "<a class=\"mbx_link\" href=\"right_main.php?PG_SHOWALL=0&startMessage=1&mailbox=$mailboxURL\" target=\"right\">" . $pre;