Files
roundcube-ident_switch/config.inc.php.dist
Laurent Dinclaux 70f863ac68 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'
2026-02-10 10:11:02 +11:00

41 lines
1.0 KiB
Plaintext

<?php
/**
* ident_switch - Configuration file.
*
* Copyright (C) 2016 Boris Gulay
* Copyright (C) 2026 Gecka
*
* Original code licensed under GPL-3.0+.
* New contributions licensed under AGPL-3.0+.
*
* @url https://github.com/Gecka-apps/ident_switch
*/
/*
* Preconfigured settings for different mail domains.
* Appropriate set of values is searched by mapping domain of email (from identity) to array key.
*/
$config['ident_switch.preconfig'] = [
// Domain part of email address
'domain.tld' => [
// Hostname, use ssl:// or tls:// notation if needed, for no security use imap:// (must always start with scheme).
// Required.
'host' => 'imap://mail.domain.tld',
// Login name, can be 'email' (full address from identity), 'mbox' (only mailbox part).
// Any other value is treated as 'not specified' (default).
'user' => 'email',
// Are specified settings locked in interface or not.
// Default - false.
'readonly' => true,
],
'another.tld' => [
'host' => 'tls://mail.another.tld',
'user' => 'mbox',
],
];