Folder list refresh and folder separators

Issue #83 new
Lionel VEST created an issue

Hi,

I tried this plugin because several coworkers asked for this function.
It works most of the time and thanks for that great work !

I encounter one problem by one user.
This user has 1000+ imap folders with 3 levels of subfolders.
His imap server as "/" as folder separator

He tries to connect a second IMAP mailbox from another server where the folder separator is "."

We encounter two bugs :

  • when he switches identity, the folder list doesn't refresh. It always keeps the list from the default mailbox. It only refreshes if he goes to PARAMETERS -> FOLDERS
  • when he switches back to the main identity, it doesn't refresh aswell. If he goes to PARAMETERS -> FOLDER, it refreshes BUT all folder are listed with any hierarchy. The "/" delimiters obviously isn't taken into account anymore. I think that when the main account has "/" delimiter (which is rare !), the plugin doesn't switch back to "/" when the user select its default account.

ROUNDCUBE 1.4.8 with ident_switch 4.4.1

Comments (3)

  1. Lionel VEST reporter

    I think the delimiter problem is some way related to #74

    If I change

    $delimiter = isset($config['imap_delimiter']) ? $config['imap_delimiter']:'.';
    

    to

    $delimiter = isset($config['imap_delimiter']) ? $config['imap_delimiter']:'/';
    

    it works

    but if I only set

    $config['imap_delimiter'] = '/';
    

    in the config.inc.php, it doesn’t work

  2. Mickael

    Since the last commit 4.4.1,

    I have in my global configuration $config['imap_delimiter']='/'

    When I switch from default account to an ident_switch account, the delimiter was good.

    When I fallback from ident_switch to the default account, the delimiter never fallback to '/',

    No problem on 4.4

    Thanks for your help.

  3. Log in to comment