Aleksander Machniak
2015-08-06 92649075eccdb6d13bde64b044416afd5294adc6
CS fixes
1 files modified
17 ■■■■ changed files
program/steps/mail/move_del.inc 17 ●●●● patch | view | raw | blame | history
program/steps/mail/move_del.inc
@@ -28,7 +28,6 @@
$old_count = $RCMAIL->storage->count(NULL, $threading ? 'THREADS' : 'ALL');
$old_pages = ceil($old_count / $RCMAIL->storage->get_pagesize());
$sources   = array();
$trash  = $RCMAIL->config->get('trash_mbox');
// move messages
@@ -56,7 +55,6 @@
            $OUTPUT->command('list_mailbox');
        $RCMAIL->display_server_error('errormoving', null, $target == $trash ? 'delete' : '');
        $OUTPUT->send();
        exit;
    }
    else {
        $OUTPUT->show_message('messagemoved', 'confirmation');
@@ -84,7 +82,6 @@
            $OUTPUT->command('list_mailbox');
        $RCMAIL->display_server_error('errordeleting');
        $OUTPUT->send();
        exit;
    }
    else {
        $OUTPUT->show_message('messagedeleted', 'confirmation');
@@ -96,7 +93,6 @@
else {
    $OUTPUT->show_message('internalerror', 'error');
    $OUTPUT->send();
    exit;
}
$search_request = rcube_utils::get_input_value('_search', rcube_utils::INPUT_GPC);
@@ -107,12 +103,17 @@
}
if ($_POST['_from'] == 'show') {
  if ($next = rcube_utils::get_input_value('_next_uid', rcube_utils::INPUT_GPC))
    if ($next = rcube_utils::get_input_value('_next_uid', rcube_utils::INPUT_GPC)) {
    $OUTPUT->command('show_message', $next);
  else
    $OUTPUT->command('command', 'list');
}
else {
        $OUTPUT->command('command', 'list');
    }
    $OUTPUT->send();
}
$mbox           = $RCMAIL->storage->get_folder();
  $msg_count      = $RCMAIL->storage->count(NULL, $threading ? 'THREADS' : 'ALL');
  $exists         = $RCMAIL->storage->count($mbox, 'EXISTS', true);
  $page_size      = $RCMAIL->storage->get_pagesize();
@@ -136,7 +137,6 @@
  $OUTPUT->set_env('exists', $exists);
  // update mailboxlist
  $mbox = $RCMAIL->storage->get_folder();
  $unseen_count = $msg_count ? $RCMAIL->storage->count($mbox, 'UNSEEN') : 0;
  $old_unseen = rcmail_get_unseen_count($mbox);
@@ -170,7 +170,6 @@
  }
  else if ($target !== null && $target === $trash) {
      $OUTPUT->command('set_trash_count', $RCMAIL->storage->count($trash, 'EXISTS', true));
  }
}
// send response