Author Topic: Bug with lowercase and uppercase folder names (when set as default folder) + Sol  (Read 2976 times)

Offline RT

  • Newbie
  • *
  • Posts: 1
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?