| | |
| | | |
| | | $success = true; |
| | | foreach (rcmail::get_uids() as $mbox => $uids) { |
| | | if ($mbox == $target) { |
| | | if ($mbox === $target) { |
| | | $count += count($uids); |
| | | } |
| | | else if ($RCMAIL->storage->move_message($uids, $target, $mbox)) { |
| | |
| | | $OUTPUT->show_message('messagemoved', 'confirmation'); |
| | | } |
| | | |
| | | $addrows = true; |
| | | if (!empty($_POST['_refresh'])) { |
| | | // FIXME: send updated message rows instead of releading the entire list |
| | | $OUTPUT->command('refresh_list'); |
| | | } |
| | | else { |
| | | $addrows = true; |
| | | } |
| | | } |
| | | // delete messages |
| | | else if ($RCMAIL->action=='delete' && !empty($_POST['_uid'])) { |