Roundcube Community Forum

Release Support => Pending Issues => Topic started by: RT on February 11, 2007, 06:40:55 PM

Title: Bug with lowercase and uppercase folder names (when set as default folder) + Sol
Post by: RT on February 11, 2007, 06:40:55 PM
Hi
I've found a bug with folder listing:
When u have 2 folders called: Folder1 and folder1 and Folder1 is set in the config as default_folder, then it will not be displayed in the folder list.
Solution:
in file: roundcube/program/includercube_imap.inc
find function " function _sort_mailbox_list($a_folders)" and change:

    if ($p = array_search(strtolower($folder), $this->default_folders_lc) !==FALSE)

into this:

    $p = array_search(strtolower($folder), $this->default_folders_lc);
    if ($p !==FALSE && $this->default_folders[$p]==$folder)


This should fix the problem, am i correct?