summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2005-10-03 21:20:42 +0000
committerthomascube <thomas@roundcube.net>2005-10-03 21:20:42 +0000
commit6dc0269fcc9f11fbd53da1fb647237ab73cf394d (patch)
tree02976623a072f82d42a5b0943e8b4f2a7a8971da /program/include/main.inc
parentadf95dde7bb32716d4152528a1c6d8eab3fadcb2 (diff)
Make message caching configurable
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 7b34bf632..7173917d4 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -132,9 +132,13 @@ function rcmail_auth_hash($sess_id, $ts)
function rcmail_imap_init($connect=FALSE)
{
global $CONFIG, $IMAP;
-
+
$IMAP = new rcube_imap();
+ // enable caching of imap data
+ if ($CONFIG['enable_caching']===TRUE)
+ $IMAP->set_caching(TRUE);
+
// set root dir from config
if (strlen($CONFIG['imap_root']))
$IMAP->set_rootdir($CONFIG['imap_root']);