From 5fefb1001c97d9957d9f064f328144e5f7906e64 Mon Sep 17 00:00:00 2001 From: stekkel Date: Sat, 11 Feb 2006 10:06:10 +0000 Subject: [PATCH 1/1] Last small addition, use separate class for mailboxes with recent messages so you can detect where the recent messages are located if you use the newmail plugin and only inform about recent messages. At this moment the unseenstring is bold when the mailbox contains recent messages. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10702 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/left_main.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/left_main.php b/src/left_main.php index 646d664f..222cd49d 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -83,7 +83,11 @@ function ListBoxes ($boxes, $j=0 ) { if (isset($unseen_type) && ($unseen_type == 2) && ($boxes->total !== false)) { $unseen_string .= '/' . $boxes->total; } - $unseen_string = "($unseen_string)"; + if (isset($boxes->recent) && $boxes->recent) { + $unseen_string = "($unseen_string)"; + } else { + $unseen_string = "($unseen_string)"; + } /* * Finally allow the script to display the values by setting a boolean. @@ -256,8 +260,11 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0000' ) { if (isset($unseen_type) && ($unseen_type == 2) && ($boxes->total !== false)) { $unseen_string .= '/' . $boxes->total; } - - $unseen_string = "($unseen_string)"; + if (isset($boxes->recent) && $boxes->recent > 0) { + $unseen_string = "($unseen_string)"; + } else { + $unseen_string = "($unseen_string)"; + } /* * Finally allow the script to display the values by setting a boolean. -- 2.25.1