Modernize config.inc.php.dist for Roundcube 1.6+
- Use $config instead of deprecated $rcmail_config - Replace array() with short array syntax [] - Replace # comments with // for consistency - Fix typo: 'threated' -> 'treated'
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
* ident_switch - Configuration file.
|
* ident_switch - Configuration file.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Boris Gulay
|
* Copyright (C) 2016 Boris Gulay
|
||||||
|
* Copyright (C) 2026 Gecka
|
||||||
*
|
*
|
||||||
* Original code licensed under GPL-3.0+.
|
* Original code licensed under GPL-3.0+.
|
||||||
* New contributions licensed under AGPL-3.0+.
|
* New contributions licensed under AGPL-3.0+.
|
||||||
@@ -14,26 +15,26 @@
|
|||||||
* Preconfigured settings for different mail domains.
|
* Preconfigured settings for different mail domains.
|
||||||
* Appropriate set of values is searched by mapping domain of email (from identity) to array key.
|
* Appropriate set of values is searched by mapping domain of email (from identity) to array key.
|
||||||
*/
|
*/
|
||||||
$rcmail_config['ident_switch.preconfig'] = array(
|
$config['ident_switch.preconfig'] = [
|
||||||
|
|
||||||
# Domain part of email address
|
// Domain part of email address
|
||||||
'domain.tld' => array(
|
'domain.tld' => [
|
||||||
|
|
||||||
# Hostname, use ssl:// or tls:// notation if needed, for no security use imap:// (must always start with scheme).
|
// Hostname, use ssl:// or tls:// notation if needed, for no security use imap:// (must always start with scheme).
|
||||||
# Required.
|
// Required.
|
||||||
'host' => 'imap://mail.domain.tld',
|
'host' => 'imap://mail.domain.tld',
|
||||||
|
|
||||||
# Login name, can be 'email' (full address from identity), 'mbox' (only mailbox part).
|
// Login name, can be 'email' (full address from identity), 'mbox' (only mailbox part).
|
||||||
# Any other value is threated ad 'not specified' (default).
|
// Any other value is treated as 'not specified' (default).
|
||||||
'user' => 'email',
|
'user' => 'email',
|
||||||
|
|
||||||
# Are specified settings locked in interface or not.
|
// Are specified settings locked in interface or not.
|
||||||
# Default - false.
|
// Default - false.
|
||||||
'readonly' => true
|
'readonly' => true,
|
||||||
),
|
],
|
||||||
|
|
||||||
'another.tld' => array(
|
'another.tld' => [
|
||||||
'host' => 'tls://mail.another.tld',
|
'host' => 'tls://mail.another.tld',
|
||||||
'user' => 'mbox',
|
'user' => 'mbox',
|
||||||
),
|
],
|
||||||
);
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user