| | |
| | | |
| | | if ($flag == 'DELETED' && $CONFIG['skip_deleted'] && $_POST['_from'] != 'show') { |
| | | // count messages before changing anything |
| | | $old_count = $IMAP->messagecount(); |
| | | $old_count = $IMAP->messagecount(NULL, $IMAP->threading ? 'THREADS' : 'ALL'); |
| | | $old_pages = ceil($old_count / $IMAP->page_size); |
| | | $count = sizeof(explode(',', $uids)); |
| | | } |
| | |
| | | $_SESSION['search'][$search_request] = $IMAP->refresh_search(); |
| | | } |
| | | |
| | | $msg_count = $IMAP->messagecount(); |
| | | $msg_count = $IMAP->messagecount(NULL, $IMAP->threading ? 'THREADS' : 'ALL'); |
| | | $pages = ceil($msg_count / $IMAP->page_size); |
| | | $nextpage_count = $old_count - $IMAP->page_size * $IMAP->list_page; |
| | | $remaining = $msg_count - $IMAP->page_size * ($IMAP->list_page - 1); |
| | |
| | | } |
| | | $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($msg_count)); |
| | | |
| | | if ($IMAP->threading) |
| | | $count = get_input_value('_count', RCUBE_INPUT_POST); |
| | | |
| | | // add new rows from next page (if any) |
| | | if (($jump_back || $nextpage_count > 0)) { |
| | | if ($count && ($jump_back || $nextpage_count > 0)) { |
| | | $sort_col = isset($_SESSION['sort_col']) ? $_SESSION['sort_col'] : $CONFIG['message_sort_col']; |
| | | $sort_order = isset($_SESSION['sort_order']) ? $_SESSION['sort_order'] : $CONFIG['message_sort_order']; |
| | | |