diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-15 12:21:03 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-15 12:21:03 +0000 |
| commit | 571095657cd5fbedcf9b0e7cf325644122f0194c (patch) | |
| tree | ab74230eff1e42382db854a151f9deefe02a11dd /roundcubemail/program/include/rcube_imap.php | |
| parent | 8243089242db407a5681b59b6db2a7aca1c1cf60 (diff) | |
- fix sorting of folders with capital letters
git-svn-id: https://svn.roundcube.net/trunk@3494 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index 22f497927..466c47a3a 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -2541,24 +2541,23 @@ class rcube_imap */ function list_unsubscribed($root='') { - static $sa_unsubscribed; + static $a_folders; - if (is_array($sa_unsubscribed)) - return $sa_unsubscribed; + if (is_array($a_folders)) + return $a_folders; // retrieve list of folders from IMAP server $a_mboxes = $this->conn->listMailboxes($this->mod_mailbox($root), '*'); // modify names with root dir foreach ($a_mboxes as $mbox_name) { - $name = $this->mod_mailbox($mbox_name, 'out'); - if (strlen($name)) + if ($name = $this->mod_mailbox($mbox_name, 'out')) $a_folders[] = $name; } // filter folders and sort them - $sa_unsubscribed = $this->_sort_mailbox_list($a_folders); - return $sa_unsubscribed; + $a_folders = $this->_sort_mailbox_list($a_folders); + return $a_folders; } @@ -3533,7 +3532,7 @@ class rcube_imap if (($p = array_search($folder, $this->default_folders)) !== false && !$a_defaults[$p]) $a_defaults[$p] = $folder; else - $folders[$folder] = mb_strtolower(rcube_charset_convert($folder, 'UTF7-IMAP')); + $folders[$folder] = rcube_charset_convert($folder, 'UTF7-IMAP'); } // sort folders and place defaults on the top |
