summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-12-04 19:07:29 +0000
committeralecpl <alec@alec.pl>2008-12-04 19:07:29 +0000
commit39cd51aff59d8a85321474ee573b09b507b3f24e (patch)
tree2142e138ff9ab8275eae7e260659c4fb4d6e4cdd /index.php
parent8374caaf202622124fa90ce8eb6ae29f5e6bf130 (diff)
- performance: connect to imap server only when needed
(some mail actions do not require imap connection)
Diffstat (limited to 'index.php')
-rw-r--r--index.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/index.php b/index.php
index d4fc54304..74c7c21d8 100644
--- a/index.php
+++ b/index.php
@@ -121,14 +121,6 @@ else if ($RCMAIL->action != 'login' && $_SESSION['user_id'] && $RCMAIL->action !
}
-// log in to imap server
-if (!empty($RCMAIL->user->ID) && $RCMAIL->task == 'mail') {
- if (!$RCMAIL->imap_connect()) {
- $RCMAIL->kill_session();
- }
-}
-
-
// check client X-header to verify request origin
if ($OUTPUT->ajax_call) {
if (!$RCMAIL->config->get('devel_mode') && !rc_request_header('X-RoundCube-Referer')) {
@@ -223,11 +215,6 @@ while ($redirects < 5) {
}
-// make sure the message count is refreshed (for default view)
-if ($RCMAIL->task == 'mail') {
- $IMAP->messagecount($_SESSION['mbox'], 'ALL', true);
-}
-
// parse main template (default)
$OUTPUT->send($RCMAIL->task);