X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=112ad87b7aca3dc1a961b526acf28b002e0a17f4;hb=6b6381715922c24dc8664cc62464096814d6a291;hp=c8bc624aa7411bed2e8ed2e7e22318c46236c61b;hpb=4bbba0d8cf096277dc7375cfb54193be092b83e5;p=squirrelmail.git
diff --git a/src/left_main.php b/src/left_main.php
index c8bc624a..112ad87b 100644
--- a/src/left_main.php
+++ b/src/left_main.php
@@ -1,6 +1,8 @@
";
+ displayHtmlHeader();
function formatMailboxName($imapConnection, $mailbox, $real_box, $delimeter, $unseen) {
global $folder_prefix, $trash_folder, $sent_folder;
global $color, $move_to_sent, $move_to_trash;
+ global $unseen_notify, $unseen_type;
$mailboxURL = urlencode($real_box);
- if($real_box=="INBOX") {
+
+ if ($unseen_notify == 2 && $real_box == "INBOX") {
$unseen = sqimap_unseen_messages($imapConnection, $numUnseen, $real_box);
- }
+ if ($unseen_type == 1 && $unseen > 0) {
+ $unseen_string = "($unseen)";
+ $unseen_found = true;
+ } else if ($unseen_type == 2) {
+ $numMessages = sqimap_get_num_messages($imapConnection, $real_box);
+ $unseen_string = "($unseen/$numMessages)";
+ $unseen_found = true;
+ }
+ } else if ($unseen_notify == 3) {
+ $unseen = sqimap_unseen_messages($imapConnection, $numUnseen, $real_box);
+ if ($unseen_type == 1 && $unseen > 0) {
+ $unseen_string = "($unseen)";
+ $unseen_found = true;
+ } else if ($unseen_type == 2) {
+ $numMessages = sqimap_get_num_messages($imapConnection, $real_box);
+ $unseen_string = "($unseen/$numMessages)";
+ $unseen_found = true;
+ }
+ }
- echo "