summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorvbenincasa <vbenincasa@gmail.com>2011-04-27 08:38:21 +0000
committervbenincasa <vbenincasa@gmail.com>2011-04-27 08:38:21 +0000
commitb04c51fafbc9dd688e17370626139a93d17abe77 (patch)
tree85a5f184b42c078334d971be3009412ce3078351 /config
parent60a277f1ce9026ded054b8c3792e6175f2689d4a (diff)
- Added the %s variable in 'default_host' and 'smtp_server' option (%s variable is the domain name after the '@' from e-mail address provided at login screen). The %s just returns a value if the provided e-mail is valid to avoid unnecessary lookups and reduce the possibility of connections to undesirable hosts.
- Small fix to the code comment of rcube_parse_host()
Diffstat (limited to 'config')
-rw-r--r--config/main.inc.php.dist2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/main.inc.php.dist b/config/main.inc.php.dist
index 6f92c6ee5..d74c82dc9 100644
--- a/config/main.inc.php.dist
+++ b/config/main.inc.php.dist
@@ -64,6 +64,7 @@ $rcmail_config['smtp_debug'] = false;
// Supported replacement variables:
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostname without the first part)
+// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %d = domain.tld
$rcmail_config['default_host'] = '';
@@ -119,6 +120,7 @@ $rcmail_config['imap_auth_pw'] = null;
// %h - user's IMAP hostname
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostname without the first part)
+// %s - domain name after the '@' from e-mail address provided at login screen
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %d = domain.tld
$rcmail_config['smtp_server'] = '';