|
|
@ -59,6 +59,13 @@ else if ($RCMAIL->action == 'purge') {
|
|
|
|
|
|
|
|
|
|
|
|
if ($success) {
|
|
|
|
if ($success) {
|
|
|
|
$OUTPUT->show_message('folderpurged', 'confirmation');
|
|
|
|
$OUTPUT->show_message('folderpurged', 'confirmation');
|
|
|
|
|
|
|
|
$OUTPUT->command('set_unread_count', $mbox, 0);
|
|
|
|
|
|
|
|
rcmail_set_unseen_count($mbox, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// set trash folder state
|
|
|
|
|
|
|
|
if ($mbox === $trash_mbox) {
|
|
|
|
|
|
|
|
$OUTPUT->command('set_trash_count', 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($_REQUEST['_reload'])) {
|
|
|
|
if (!empty($_REQUEST['_reload'])) {
|
|
|
|
$OUTPUT->set_env('messagecount', 0);
|
|
|
|
$OUTPUT->set_env('messagecount', 0);
|
|
|
@ -66,14 +73,7 @@ else if ($RCMAIL->action == 'purge') {
|
|
|
|
$OUTPUT->set_env('exists', 0);
|
|
|
|
$OUTPUT->set_env('exists', 0);
|
|
|
|
$OUTPUT->command('message_list.clear');
|
|
|
|
$OUTPUT->command('message_list.clear');
|
|
|
|
$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text(), $mbox);
|
|
|
|
$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text(), $mbox);
|
|
|
|
$OUTPUT->command('set_unread_count', $mbox, 0);
|
|
|
|
|
|
|
|
$OUTPUT->command('set_quota', $RCMAIL->quota_content(null, $mbox));
|
|
|
|
$OUTPUT->command('set_quota', $RCMAIL->quota_content(null, $mbox));
|
|
|
|
rcmail_set_unseen_count($mbox, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// set trash folder state
|
|
|
|
|
|
|
|
if ($mbox === $trash_mbox) {
|
|
|
|
|
|
|
|
$OUTPUT->command('set_trash_count', 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|