| | |
| | | * |
| | | * Add it to the plugins list in config/main.inc.php to enable the user option |
| | | * The user option can be hidden and set globally by adding 'use_subscriptions' |
| | | * to the the 'dont_override' configure line: |
| | | * to the 'dont_override' configure line: |
| | | * $rcmail_config['dont_override'] = array('use_subscriptions'); |
| | | * and then set the global preference |
| | | * $rcmail_config['use_subscriptions'] = true; // or false |
| | |
| | | |
| | | function mailboxes_list($args) |
| | | { |
| | | $rcmail = rcmail::get_instance(); |
| | | $rcmail = rcmail::get_instance(); |
| | | if (!$rcmail->config->get('use_subscriptions', true)) { |
| | | $storage = $rcmail->get_storage(); |
| | | if ($storage->check_connection()) { |
| | | $args['folders'] = $storage->conn->listMailboxes($args['root'], $args['name']); |
| | | } |
| | | $args['folders'] = $rcmail->get_storage()->list_folders_direct(); |
| | | } |
| | | return $args; |
| | | } |