$line .= "\n<small>\n" .
" (<A HREF=\"empty_trash.php\" style=\"text-decoration:none\">"._("purge")."</A>)" .
"</small>";
+ } else {
+ $line .= concat_hook_function('left_main_after_each_folder',
+ array(isset($numMessages) ? $numMessages : '',$real_box,$imapConnection));
}
}
if (isset($boxes) && !empty($boxes)) {
$mailbox = $boxes->mailboxname_full;
$leader = '<tt>';
- $leader .= str_repeat(' ',$j);
+ $leader .= str_repeat(' ',$j);
$mailboxURL = urlencode($mailbox);
/* get unseen/total messages information */
if ($boxes->unseen !== false || $boxes->total !== false) {
$unseen = $boxes->unseen;
- $unseen_string = "($unseen)";
- if ($unseen>0||$boxes->total>0) {
+ if ($unseen>0 || $boxes->total>0) {
+ $unseen_string = "($unseen)";
$unseen_found = TRUE;
}
$unseen_before = '<font color="' . $color[11] . '">';
"</small>";
}
} else {
- if (!$boxes->is_noselect) {
+ if (!$boxes->is_noselect || strtolower($boxes->mailboxname_full)=="inbox") {
if ($unseen > 0) {
$pre .= '<b>';
}
}
/* Print unseen information. */
- if (isset($unseen_found) && $unseen_found) {
+ if (isset($unseen_found) && $unseen_found && ($unseen > 0)) {
$end .= " <small>$unseen_string</small>";
}
/* get unseen/total messages information */
if ($boxes->unseen !== false) {
$unseen = $boxes->unseen;
- $unseen_string = "($unseen)";
- if ($unseen>0) $unseen_found = TRUE;
+ if ($unseen>0) {
+ $unseen_found = TRUE;
+ $unseen_string = "($unseen)";
+ }
if ($boxes->total) {
$numMessages = $boxes->total;
$unseen_string = "<font color=\"$color[11]\">($unseen/$numMessages)</font>";
if ($unseen > 0) { $end .= '</b>'; }
/* Print unseen information. */
- if (isset($unseen_found) && $unseen_found) {
+ if (isset($unseen_found) && $unseen_found && ($unseen > 0)) {
$end .= " $unseen_string";
}