From 6dc0269fcc9f11fbd53da1fb647237ab73cf394d Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 03 Oct 2005 17:20:42 -0400
Subject: [PATCH] Make message caching configurable

---
 program/include/main.inc |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/program/include/main.inc b/program/include/main.inc
index 7b34bf6..7173917 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -132,9 +132,13 @@
 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']);

--
Gitblit v1.9.1