summaryrefslogtreecommitdiff
path: root/roundcubemail/index.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-12-04 19:07:29 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-12-04 19:07:29 +0000
commit058d67ac713c55f4ae230c5c2079105ed4f479b8 (patch)
tree7dcfedb679613cd8750557d8fd4cb08a9b846ba1 /roundcubemail/index.php
parent58477c3eea9741a5431726ba730a98d27409d9ed (diff)
- performance: connect to imap server only when needed
(some mail actions do not require imap connection) git-svn-id: https://svn.roundcube.net/trunk@2119 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/index.php')
-rw-r--r--roundcubemail/index.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php
index d4fc54304..74c7c21d8 100644
--- a/roundcubemail/index.php
+++ b/roundcubemail/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);