alecpl
2010-03-25 fb7ec576ab3a353b6eb99614e9636a9096462807
program/steps/mail/mark.inc
@@ -53,11 +53,11 @@
  }
  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'])) {
@@ -107,7 +107,7 @@
   $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'];