| | |
| | | $mbox_name = $IMAP->get_mailbox_name(); |
| | | |
| | | // send EXPUNGE command |
| | | if ($_action=='expunge' && ($mbox = get_input_value('_mbox', RCUBE_INPUT_POST))) |
| | | if ($RCMAIL->action=='expunge' && ($mbox = get_input_value('_mbox', RCUBE_INPUT_POST))) |
| | | { |
| | | $success = $IMAP->expunge($mbox); |
| | | |
| | |
| | | if ($success && !empty($_REQUEST['_reload'])) |
| | | { |
| | | $OUTPUT->command('message_list.clear'); |
| | | $_action = 'list'; |
| | | $RCMAIL->action = 'list'; |
| | | return; |
| | | } |
| | | else |
| | |
| | | } |
| | | |
| | | // clear mailbox |
| | | else if ($_action=='purge' && ($mbox = get_input_value('_mbox', RCUBE_INPUT_POST))) |
| | | else if ($RCMAIL->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']) |