X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fimap_mailbox.php;h=375b97bfee4262691b5e23d3750cf131d60af45e;hp=746a438bb5029098cc0d2a4bb9b1104a3411da3e;hb=65c3ec94c897fb098598f3843e371020deb2226b;hpb=ebd13f5591c7d74d2d2b390407608b1faa8a5550 diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 746a438b..375b97bf 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -43,8 +43,7 @@ function isBoxBelow( $box2, $box1 ) { function isSpecialMailbox( $box ) { global $trash_folder, $sent_folder, $draft_folder, - $move_to_trash, $move_to_sent, $save_as_draft, - $delimiter, $folder_prefix, $imap_server_type; + $move_to_trash, $move_to_sent, $save_as_draft; $ret = ( (strtolower($box) == 'inbox') || ( $move_to_trash && isBoxBelow( $box, $trash_folder ) ) || @@ -357,13 +356,13 @@ function user_strcasecmp($a, $b) { ** See comment on sqimap_mailbox_parse() for info about the returned array. ******************************************************************************/ function sqimap_mailbox_list ($imap_stream) { + global $data_dir, $username, $list_special_folders_first, $folder_prefix, $trash_folder, $sent_folder, $draft_folder, $move_to_trash, $move_to_sent, $save_as_draft, $delimiter; - $inbox_in_list = false; - $inbox_subscribed = false; + $inbox_in_list = $inbox_subscribed = FALSE; require_once('../src/load_prefs.php'); require_once('../functions/array.php'); @@ -495,6 +494,7 @@ function sqimap_mailbox_list ($imap_stream) { } return( $boxesnew ); + } /* @@ -505,9 +505,7 @@ function sqimap_mailbox_list_all ($imap_stream) global $list_special_folders_first, $folder_prefix; global $delimiter; - if (!function_exists('ary_sort')) { - include_once('../functions/array.php'); - } + require_once('../functions/array.php'); $ssid = sqimap_session_id(); $lsid = strlen( $ssid ); @@ -529,7 +527,7 @@ function sqimap_mailbox_list_all ($imap_stream) if (substr($read_ary[$i], 0, $lsid) != $ssid ) { /* Store the raw IMAP reply */ - $boxes[$g]["raw"] = $read_ary[$i]; + $boxes[$g]['raw'] = $read_ary[$i]; /* Count number of delimiters ($delimiter) in folder name */ $mailbox = find_mailbox_name($read_ary[$i]);