[Roundcube] Don't overwite our custom configs!

interfasys

Verified User
Joined
Oct 31, 2003
Messages
1,821
Location
Switzerland
CB completely messes up a custom config.inc.php

Custom settings were added at the end of the initially generated config and CB ends up duplicating some custom and some of its own settings

It looks something like this

Code:
[B]$config['smtp_auth_type'] = 'LOGIN';
$config['create_default_folders'] = true;
$config['login_autocomplete'] = 2;
$config['quota_zero_as_unlimited'] = true;
$config['enable_spellcheck'] = false;
$config['email_dns_check'] = true;
$config['max_recipients'] = 150;
$config['max_group_members'] = 150;
$config['mime_types'] = '/var/www/html/roundcube/config/mime.types';[/B]

// Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
$config['imap_cache'] = memcache;
// Enables messages cache. Only 'db' cache is supported.
$config['messages_cache'] = db;
// enforce connections over https
// with this option enabled, all non-secure connections will be redirected.
// set the port for the ssl connection as value of this option if it differs from the default 443
$config['force_https'] = true;
// tell PHP that it should work as under secure connection
// even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
// e.g. when you're running Roundcube behind a https proxy
// this option is mutually exclusive to 'force_https' and only either one of them should be set to true.
$config['use_https'] = true;
// store spam messages in this mailbox
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
[B]$config['junk_mbox'] = 'INBOX/spam';[/B]
// display these folders separately in the mailbox list.
// these folders will also be displayed with localized names
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
[B]$config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'INBOX/spam', 'Trash');[/B]
...
// When replying:
// -1 - don't cite the original message
// 0  - place cursor below the original message
// 1  - place cursor above original message (top posting)
$config['reply_mode'] = 1;[B]$config['junk_mbox'] = 'INBOX.spam';
$config['default_folders'] = array('INBOX', 'INBOX.Drafts', 'INBOX.Sent', 'INBOX.spam', 'INBOX.Trash');
$config['smtp_auth_type'] = 'LOGIN';
$config['create_default_folders'] = true;
$config['protect_default_folders'] = true;
$config['login_autocomplete'] = 2;
$config['quota_zero_as_unlimited'] = true;
$config['enable_spellcheck'] = false;
$config['email_dns_check'] = true;
$config['max_recipients'] = 150;
$config['max_group_members'] = 150;
$config['mime_types'] = '/var/www/html/roundcube/config/mime.types';[/B]
 
Last edited:
Some plugins are duplicated as well

Code:
// List of active plugins (in plugins/ directory)
$config['plugins'] = array(
'password',
'managesieve',
'password',
'archive',
'zipdownload',
);
 
Is it rev 1032? What if you remove RoundCube config from /var/www/html/roundcube and run "./build roundcube"? That was an issue in rev 1031, but rev 1032 was released to fix it (5 days ago).
 
Back
Top