From 0566adccd4f45c1b61c512df95d0b9518f00e2ef Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 04 Apr 2006 17:42:01 -0400
Subject: [PATCH] Include host-specific configuration file

---
 config/main.inc.php.dist |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/config/main.inc.php.dist b/config/main.inc.php.dist
index 55a84f6..af27851 100644
--- a/config/main.inc.php.dist
+++ b/config/main.inc.php.dist
@@ -40,6 +40,11 @@
 // TCP port used for IMAP connections
 $rcmail_config['default_port'] = 143;
 
+// Automatically add this domain to user names for login
+// Only for IMAP servers that require full e-mail addresses for login
+// Specify an array with 'host' => 'domain' values to support multiple hosts
+$rcmail_config['username_domain'] = '';
+
 // This domain will be used to form e-mail addresses of new users
 // Specify an array with 'host' => 'domain' values to support multiple hosts
 $rcmail_config['mail_domain'] = '';
@@ -175,5 +180,11 @@
 // show pretty dates as standard
 $rcmail_config['prettydate'] = TRUE;
 
+
+/***** try to load host-specific configuration *****/
+
+@include($_SERVER['HTTP_HOST'].'.inc.php');
+
+
 // end of config file
 ?>
\ No newline at end of file

--
Gitblit v1.9.1