From 4c34dac57d2863eeffa84bdf81cfdc6af3e60d07 Mon Sep 17 00:00:00 2001 From: nehresma Date: Fri, 11 Feb 2000 02:42:40 +0000 Subject: [PATCH] fixed some cyrus problems and a bug in reloading the left frame where the time was set to "" rather than "None". git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@207 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap.php | 12 ++++++------ src/left_main.php | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/functions/imap.php b/functions/imap.php index 169d1a27..cec1048b 100644 --- a/functions/imap.php +++ b/functions/imap.php @@ -46,13 +46,13 @@ /** Parse the incoming mailbox name and return a string that is the FOLDER.MAILBOX **/ function findMailboxName($mailbox) { $mailbox = trim($mailbox); -// if (substr($mailbox, strlen($mailbox)-1, strlen($mailbox)) == "\"") { -// $mailbox = substr($mailbox, 0, strlen($mailbox) - 1); -// $pos = strrpos($mailbox, "\"") + 1; -// $box = substr($mailbox, $pos, strlen($mailbox)); -// } else { + if (substr($mailbox, strlen($mailbox)-1, strlen($mailbox)) == "\"") { + $mailbox = substr($mailbox, 0, strlen($mailbox) - 1); + $pos = strrpos($mailbox, "\"") + 1; + $box = substr($mailbox, $pos, strlen($mailbox)); + } else { $box = substr($mailbox, strrpos($mailbox, " ")+1, strlen($mailbox)); -// } + } return $box; } diff --git a/src/left_main.php b/src/left_main.php index 812515b9..9cbe1b37 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -23,7 +23,7 @@ function formatMailboxName($imapConnection, $mailbox, $real_box, $delimeter, $color, $move_to_trash) { require ("../config/config.php"); - $mailboxURL = urlencode($mailbox); + $mailboxURL = urlencode($real_box); selectMailbox($imapConnection, $real_box, $numNessages); $unseen = unseenMessages($imapConnection, $numUnseen); @@ -70,7 +70,7 @@ /** If it was a successful login, lets load their preferences **/ include("../src/load_prefs.php"); - if (isset($left_refresh) && ($left_refresh != "None")) { + if (isset($left_refresh) && ($left_refresh != "None") && ($left_refresh != "")) { echo ""; echo ""; echo ""; @@ -88,6 +88,7 @@ echo ")
"; echo "\n"; $delimeter = findMailboxDelimeter($imapConnection); + for ($i = 0;$i < count($boxes); $i++) { $line = ""; $mailbox = $boxes[$i]["FORMATTED"]; -- 2.25.1