diff options
author | alecpl <alec@alec.pl> | 2008-12-04 19:07:29 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-12-04 19:07:29 +0000 |
commit | 39cd51aff59d8a85321474ee573b09b507b3f24e (patch) | |
tree | 2142e138ff9ab8275eae7e260659c4fb4d6e4cdd /index.php | |
parent | 8374caaf202622124fa90ce8eb6ae29f5e6bf130 (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.php | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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); |