Skip to content

Commit 6f81758

Browse files
committed
1 parent 467024a commit 6f81758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/mail_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ function user_update($event_name,$data) {
118118
// Move mailbox, if domain has changed and delete old mailbox
119119
if($data['new']['maildir'] != $data['old']['maildir'] && is_dir($data['old']['maildir'])) {
120120
if(is_dir($data['new']['maildir'])) {
121-
exec("rm -f ".escapeshellcmd($data['new']['maildir']).'/*');
122-
rmdir($data['new']['maildir']);
121+
exec("rm -fr ".escapeshellcmd($data['new']['maildir']));
122+
//rmdir($data['new']['maildir']);
123123
}
124124
exec('mv -f '.escapeshellcmd($data['old']['maildir']).' '.escapeshellcmd($data['new']['maildir']));
125125
// exec('mv -f '.escapeshellcmd($data['old']['maildir']).'/* '.escapeshellcmd($data['new']['maildir']));

0 commit comments

Comments
 (0)