| | |
| | | } |
| | | |
| | | if($flag == 'DELETED' && $CONFIG['read_when_deleted'] && !empty($_POST['_ruid'])) { |
| | | $uids = get_input_value('_ruid', RCUBE_INPUT_POST); |
| | | $read = $IMAP->set_flag($uids, 'SEEN'); |
| | | $ruids = get_input_value('_ruid', RCUBE_INPUT_POST); |
| | | $read = $IMAP->set_flag($ruids, 'SEEN'); |
| | | |
| | | if ($read != -1 && !$CONFIG['skip_deleted']) |
| | | $OUTPUT->command('flag_deleted_as_read', $uids); |
| | | $OUTPUT->command('flag_deleted_as_read', $ruids); |
| | | } |
| | | |
| | | if ($flag == 'SEEN' || $flag == 'UNSEEN' || ($flag == 'DELETED' && !$CONFIG['skip_deleted'])) { |
| | |
| | | $count = get_input_value('_count', RCUBE_INPUT_POST); |
| | | |
| | | // add new rows from next page (if any) |
| | | if ($count && ($jump_back || $nextpage_count > 0)) { |
| | | if ($count && $uids != '*' && ($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']; |
| | | |