| | |
| | | if ($cols = get_input_value('_cols', RCUBE_INPUT_GET)) |
| | | { |
| | | $save_arr = array(); |
| | | $_SESSION['list_columns'] = $save_arr['list_cols'] = explode(',', $cols); |
| | | $save_arr['list_cols'] = explode(',', $cols); |
| | | } |
| | | |
| | | if ($save_arr) |
| | | if ($save_arr) |
| | | $RCMAIL->user->save_prefs($save_arr); |
| | | |
| | | $mbox_name = $IMAP->get_mailbox_name(); |
| | |
| | | if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search']])) |
| | | $_SESSION['search'][$_REQUEST['_search']] = $IMAP->get_search_set(); |
| | | |
| | | // empty result? we'll skip UNSEEN counting in rcmail_send_unread_count() |
| | | if (empty($search_request) && empty($a_headers)) { |
| | | $unseen = 0; |
| | | } |
| | | |
| | | // update mailboxlist |
| | | rcmail_send_unread_count($mbox_name, !empty($_REQUEST['_refresh'])); |
| | | rcmail_send_unread_count($mbox_name, !empty($_REQUEST['_refresh']), $unseen); |
| | | |
| | | // update message count display |
| | | $pages = ceil($count/$IMAP->page_size); |
| | | $OUTPUT->set_env('messagecount', $count); |
| | | $OUTPUT->set_env('pagecount', $pages); |
| | | $OUTPUT->set_env('threading', (bool) $IMAP->threading); |
| | | $OUTPUT->set_env('current_page', $count ? $IMAP->list_page : 1); |
| | | $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count)); |
| | | $OUTPUT->command('set_mailboxname', rcmail_get_mailbox_name_text()); |
| | | |
| | | // add message rows |
| | | rcmail_js_message_list($a_headers, FALSE, TRUE, (bool) $cols); |
| | | rcmail_js_message_list($a_headers, FALSE, $cols); |
| | | if (isset($a_headers) && count($a_headers)) |
| | | { |
| | | if ($search_request) |
| | |
| | | // send response |
| | | $OUTPUT->send(); |
| | | |
| | | ?> |
| | | |