[Web] Fix maildir cleanup after deleting mailbox
This commit is contained in:
parent
800eebd117
commit
0d4e89e62b
@ -3370,7 +3370,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$maildir = mailbox('get', 'mailbox_details', $username)['maildir'];
|
$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);
|
$maildir_gc = json_decode(docker('post', 'dovecot-mailcow', 'exec', $exec_fields), true);
|
||||||
if ($maildir_gc['type'] != 'success') {
|
if ($maildir_gc['type'] != 'success') {
|
||||||
$_SESSION['return'][] = array(
|
$_SESSION['return'][] = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user