summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/dav.inc.php.sample45
-rw-r--r--public_html/index.php1
2 files changed, 46 insertions, 0 deletions
diff --git a/config/dav.inc.php.sample b/config/dav.inc.php.sample
new file mode 100644
index 0000000..a136e60
--- /dev/null
+++ b/config/dav.inc.php.sample
@@ -0,0 +1,45 @@
+<?php
+
+/*
+ +-------------------------------------------------------------------------+
+ | Configuration for the Kolab DAV server |
+ | |
+ | Copyright (C) 2013, Kolab Systems AG |
+ | |
+ | This program is free software: you can redistribute it and/or modify |
+ | it under the terms of the GNU Affero General Public License as |
+ | published by the Free Software Foundation, either version 3 of the |
+ | License, or (at your option) any later version. |
+ | |
+ | This program is distributed in the hope that it will be useful, |
+ | but WITHOUT ANY WARRANTY; without even the implied warranty of |
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
+ | GNU Affero General Public License for more details. |
+ | |
+ | You should have received a copy of the GNU Affero General Public License|
+ | along with this program. If not, see <http://www.gnu.org/licenses/>. |
+ | |
+ +-------------------------------------------------------------------------+
+*/
+
+$rcmail_config = array();
+
+// Log IMAP conversation to <log_dir>/imap or to syslog
+$rcmail_config['imap_debug'] = false;
+
+// Log DAV requests to <log_dir>/davdebug
+$rcmail_config['kolab_dav_debug'] = false;
+
+// IMAP server
+$rcmail_config['default_host'] = '192.168.0.22';
+#$rcmail_config['default_host'] = 'localhost';
+
+// Enables messages cache. Only 'db' cache is supported.
+$rcmail_config['messages_cache'] = false;
+
+// Enable local cache for Kolab objects
+$rcmail_config['kolab_cache'] = true;
+
+// User agent string written to kolab storage MIME messages
+$rcmail_config['useragent'] = 'Kolab DAV Server libkolab/' . RCUBE_VERSION;
+
diff --git a/public_html/index.php b/public_html/index.php
index 1c02f51..1049f99 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -59,6 +59,7 @@ require_once KOLAB_DAV_ROOT . '/lib/Roundcube/bootstrap.php';
// Roundcube framework initialization
$rcube = rcube::get_instance(rcube::INIT_WITH_DB | rcube::INIT_WITH_PLUGINS);
+$rcube->config->load_from_file(RCUBE_CONFIG_DIR . 'dav.inc.php');
$rcube->plugins->init($rcube);
$rcube->plugins->load_plugins(array('libkolab','libcalendaring'));