Skip to content

Commit 7574e4c

Browse files
author
fantu
committed
fix #410 - Change mailbox name
1 parent 2549b27 commit 7574e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/mail_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function user_update($event_name,$data) {
116116

117117
// Move mailbox, if domain has changed and delete old mailbox
118118
if($data['new']['maildir'] != $data['old']['maildir'] && is_dir($data['old']['maildir'])) {
119-
exec('mv -f '.escapeshellcmd($data['old']['maildir']).'* '.escapeshellcmd($data['new']['maildir']));
119+
exec('mv -f '.escapeshellcmd($data['old']['maildir']).'/* '.escapeshellcmd($data['new']['maildir']));
120120
if(is_file($data['old']['maildir'].'.ispconfig_mailsize'))exec('mv -f '.escapeshellcmd($data['old']['maildir']).'.ispconfig_mailsize '.escapeshellcmd($data['new']['maildir']));
121121
rmdir($data['old']['maildir']);
122122
$app->log('Moved Maildir from: '.$data['old']['maildir'].' to '.$data['new']['maildir'],LOGLEVEL_DEBUG);

0 commit comments

Comments
 (0)