X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=3c1dd21ea5d6cf90bd4f8ae3873e9be3eb5dcd6e;hb=fba9992167e8f8ebe8fba0006b193090e1c07937;hp=8d823baeb47453d14b05b3c6bd3193f0200fb182;hpb=5bdd722368a3fac32defc2242e9dd3f1e567a527;p=squirrelmail.git
diff --git a/src/left_main.php b/src/left_main.php
index 8d823bae..3c1dd21e 100644
--- a/src/left_main.php
+++ b/src/left_main.php
@@ -1,158 +1,207 @@
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;
- }
- }
-
- $line .= "";
- if ($unseen > 0)
- $line .= "";
-
- $special_color = false;
- if ((strtolower($real_box) == "inbox") ||
- (($real_box == $trash_folder) && ($move_to_trash)) ||
- (($real_box == $sent_folder) && ($move_to_sent)))
- $special_color = true;
-
- if ($special_color == true) {
- $line .= "";
- $line .= replace_spaces($mailbox);
- $line .= "";
- } else {
- $line .= "";
- $line .= replace_spaces($mailbox);
- $line .= "";
- }
-
- if ($unseen > 0)
- $line .= "";
-
- if ($unseen_found) {
- $line .= " $unseen_string";
- }
-
- if (($move_to_trash == true) && ($real_box == $trash_folder)) {
- $urlMailbox = urlencode($real_box);
- $line .= "\n\n";
- $line .= " ("._("purge").")";
- $line .= "\n\n";
- }
- $line .= "";
- return $line;
- }
-
- if (isset($left_refresh) && ($left_refresh != "None") && ($left_refresh != "")) {
- echo "\n";
- echo "\n";
- echo "\n";
- }
-
- echo "\n
\n";
-
- do_hook("left_main_before");
-
- $boxes = sqimap_mailbox_list($imapConnection);
-
- echo "";
- echo _("Folders") . "
\n\n";
-
- echo "(";
- echo _("refresh folder list");
- echo ")
";
- $delimeter = sqimap_get_delimiter($imapConnection);
-
- for ($i = 0;$i < count($boxes); $i++) {
- $line = "";
- $mailbox = $boxes[$i]["formatted"];
-
- if ($boxes[$i]["flags"]) {
- $noselect = false;
- for ($h = 0; $h < count($boxes[$i]["flags"]); $h++) {
- if (strtolower($boxes[$i]["flags"][$h]) == "noselect")
- $noselect = true;
- }
- if ($noselect == true) {
- $line .= "";
- $line .= replace_spaces($mailbox);
- $line .= "";
- } else {
- $line .= formatMailboxName($imapConnection, $mailbox, $boxes[$i]["unformatted"], $delimeter, $boxes[$i]["unseen"]);
- }
- } else {
- $line .= formatMailboxName($imapConnection, $mailbox, $boxes[$i]["unformatted"], $delimeter, $boxes[$i]["unseen"]);
- }
- echo "$line
\n";
- }
- sqimap_logout($imapConnection);
- do_hook("left_main_after");
-?>
-