Changeset 39cd51a in github
- Timestamp:
- Dec 4, 2008 2:07:29 PM (4 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 7f43e18
- Parents:
- 8374caa
- Files:
-
- 2 edited
-
index.php (modified) (2 diffs)
-
program/steps/mail/func.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
index.php
r7342d7ef r39cd51a 117 117 if (!$RCMAIL->authenticate_session()) { 118 118 $OUTPUT->show_message('sessionerror', 'error'); 119 $RCMAIL->kill_session();120 }121 }122 123 124 // log in to imap server125 if (!empty($RCMAIL->user->ID) && $RCMAIL->task == 'mail') {126 if (!$RCMAIL->imap_connect()) {127 119 $RCMAIL->kill_session(); 128 120 } … … 224 216 225 217 226 // make sure the message count is refreshed (for default view)227 if ($RCMAIL->task == 'mail') {228 $IMAP->messagecount($_SESSION['mbox'], 'ALL', true);229 }230 231 218 // parse main template (default) 232 219 $OUTPUT->send($RCMAIL->task); -
program/steps/mail/func.inc
rffbf910 r39cd51a 23 23 require_once('include/rcube_smtp.inc'); 24 24 25 26 25 $EMAIL_ADDRESS_PATTERN = '/([a-z0-9][a-z0-9\-\.\+\_]*@[a-z0-9]([a-z0-9\-][.]?)*[a-z0-9]\\.[a-z]{2,5})/i'; 26 27 // actions that do not require imap connection 28 $NOIMAP_ACTIONS = array('spell', 'addcontact', 'autocomplete', 'upload'); 29 30 31 // log in to imap server 32 if (!in_array($RCMAIL->action, $NOIMAP_ACTIONS) && !$RCMAIL->imap_connect()) { 33 $RCMAIL->kill_session(); 34 35 if ($OUTPUT->ajax_call) 36 $OUTPUT->redirect(array(), 2000); 37 38 $OUTPUT->set_env('task', 'login'); 39 $OUTPUT->send('login'); 40 } 41 42 27 43 28 44 // set imap properties and session vars … … 65 81 $OUTPUT->set_env('search_request', $search_request); 66 82 } 83 84 // make sure the message count is refreshed (for default view) 85 $IMAP->messagecount($mbox_name, 'ALL', true); 67 86 } 68 87
Note: See TracChangeset
for help on using the changeset viewer.
