|
|
@ -39,6 +39,9 @@ if ($_action=='expunge' && ($mbox = get_input_value('_mbox', RCUBE_INPUT_POST)))
|
|
|
|
// clear mailbox
|
|
|
|
// clear mailbox
|
|
|
|
else if ($_action=='purge' && ($mbox = get_input_value('_mbox', RCUBE_INPUT_POST)))
|
|
|
|
else if ($_action=='purge' && ($mbox = get_input_value('_mbox', RCUBE_INPUT_POST)))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
// we should only be purging trash and junk
|
|
|
|
|
|
|
|
if($mbox == $CONFIG['trash_mbox'] || $mbox == $CONFIG['junk_mbox'])
|
|
|
|
|
|
|
|
{
|
|
|
|
$success = $IMAP->clear_mailbox($mbox);
|
|
|
|
$success = $IMAP->clear_mailbox($mbox);
|
|
|
|
|
|
|
|
|
|
|
|
if ($success && !empty($_REQUEST['_reload']))
|
|
|
|
if ($success && !empty($_REQUEST['_reload']))
|
|
|
@ -51,6 +54,7 @@ else if ($_action=='purge' && ($mbox = get_input_value('_mbox', RCUBE_INPUT_POST
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
$commands = "// purged: $success";
|
|
|
|
$commands = "// purged: $success";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$OUTPUT->send($commands);
|
|
|
|
$OUTPUT->send($commands);
|
|
|
|