Changeset 5563 in subversion for trunk/roundcubemail/program/steps/mail/list.inc
- Timestamp:
- Dec 7, 2011 5:41:15 AM (18 months ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/steps/mail/list.inc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/list.inc
r5266 r5563 52 52 $RCMAIL->user->save_prefs($save_arr); 53 53 54 $mbox_name = $ IMAP->get_mailbox_name();54 $mbox_name = $RCMAIL->imap->get_mailbox_name(); 55 55 56 56 // Synchronize mailbox cache, handle flag changes 57 $ IMAP->mailbox_sync($mbox_name);57 $RCMAIL->imap->mailbox_sync($mbox_name); 58 58 59 59 // initialize searching result if search_filter is used … … 61 61 { 62 62 $search_request = md5($mbox_name.$_SESSION['search_filter']); 63 $ IMAP->search($mbox_name, $_SESSION['search_filter'], RCMAIL_CHARSET, $sort_col);64 $_SESSION['search'] = $ IMAP->get_search_set();63 $RCMAIL->imap->search($mbox_name, $_SESSION['search_filter'], RCMAIL_CHARSET, $sort_col); 64 $_SESSION['search'] = $RCMAIL->imap->get_search_set(); 65 65 $_SESSION['search_request'] = $search_request; 66 66 $OUTPUT->set_env('search_request', $search_request); … … 68 68 69 69 // fetch message headers 70 if ($count = $ IMAP->messagecount($mbox_name, $IMAP->threading ? 'THREADS' : 'ALL', !empty($_REQUEST['_refresh'])))71 $a_headers = $ IMAP->list_headers($mbox_name, NULL, $sort_col, $sort_order);70 if ($count = $RCMAIL->imap->messagecount($mbox_name, $RCMAIL->imap->threading ? 'THREADS' : 'ALL', !empty($_REQUEST['_refresh']))) 71 $a_headers = $RCMAIL->imap->list_headers($mbox_name, NULL, $sort_col, $sort_order); 72 72 73 73 // update search set (possible change of threading mode) … … 75 75 && $_SESSION['search_request'] == $_REQUEST['_search'] 76 76 ) { 77 $_SESSION['search'] = $ IMAP->get_search_set();77 $_SESSION['search'] = $RCMAIL->imap->get_search_set(); 78 78 } 79 79 // remove old search data … … 92 92 93 93 // update message count display 94 $pages = ceil($count/$ IMAP->page_size);94 $pages = ceil($count/$RCMAIL->imap->page_size); 95 95 $OUTPUT->set_env('messagecount', $count); 96 96 $OUTPUT->set_env('pagecount', $pages); 97 $OUTPUT->set_env('threading', (bool) $ IMAP->threading);98 $OUTPUT->set_env('current_page', $count ? $ IMAP->list_page : 1);97 $OUTPUT->set_env('threading', (bool) $RCMAIL->imap->threading); 98 $OUTPUT->set_env('current_page', $count ? $RCMAIL->imap->list_page : 1); 99 99 $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count), $mbox_name); 100 100 $OUTPUT->command('set_mailboxname', rcmail_get_mailbox_name_text()); … … 109 109 else { 110 110 // handle IMAP errors (e.g. #1486905) 111 if ($err_code = $ IMAP->get_error_code()) {111 if ($err_code = $RCMAIL->imap->get_error_code()) { 112 112 rcmail_display_server_error(); 113 113 }
Note: See TracChangeset
for help on using the changeset viewer.
