Author Topic: imap_root configuration option  (Read 57 times)

Offline pkrc

  • Newbie
  • *
  • Posts: 5
imap_root configuration option
« on: March 18, 2019, 01:55:59 PM »

I found the following explanations about using 'imap_root' configuration option
to get similar behaviour as can be defined for Squirrelmail (and other mail clients):

1. I could find only one reference to 'imap_root' configuration option
(in ./include/rcmail_install.php file) in $replaced_config array, saying,
that 'imap_root' is replaced by 'imap_ns_personal'.

So, can we use the the following approach for Roundcube version 1.3.8
(replacing $rcmail_config[] by $config[] in

Comment by hsleisink on 27 Nov 2013 15:18 UTC

I have a simple patch for this:

Add the following line to config/
$rcmail_config['imap_root'] = 'mail';

In program/steps/settings/ change line 212 and 213 to:
$a_unsubscribed = $STORAGE->list_folders($RCMAIL->config->get('imap_root'));
$a_subscribed   = $STORAGE->list_folders_subscribed($RCMAIL->config->get('imap_root'), '*', null, null, true); // unsorted

2. Can we use the following approach in Roundcube version 1.3.8
(or should we wait with this approach for stable version 1.4):

alecpl commented Jun 11, 2018
With the above commit following configuration can be used to achieve the requested behavior:

$config['imap_ns_personal'] = 'mail/';
$config['imap_ns_other'] = null;
$config['imap_ns_shared'] = null;