[Web] Fix maildir cleanup after deleting mailbox

This commit is contained in:
andryyy 2018-10-25 22:39:01 +02:00
parent 800eebd117
commit 0d4e89e62b

View File

@ -3370,7 +3370,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
continue;
}
$maildir = mailbox('get', 'mailbox_details', $username)['maildir'];
$exec_fields = array('cmd' => 'maildir_cleanup', 'maildir' => $maildir);
$exec_fields = array('cmd' => 'maildir', 'task' => 'cleanup', 'maildir' => $maildir);
$maildir_gc = json_decode(docker('post', 'dovecot-mailcow', 'exec', $exec_fields), true);
if ($maildir_gc['type'] != 'success') {
$_SESSION['return'][] = array(