ftimme
2009-01-22 6f81758b41680f6d7f005c6abdc76e0303810969
- Fixed bug FS#410 (http://bugtracker.ispconfig.org/index.php?do=details&task_id=410&project=3&order=tasktype&sort=asc).
1 files modified
4 ■■■■ changed files
server/plugins-available/mail_plugin.inc.php 4 ●●●● patch | view | raw | blame | history
server/plugins-available/mail_plugin.inc.php
@@ -118,8 +118,8 @@
        // Move mailbox, if domain has changed and delete old mailbox
        if($data['new']['maildir'] != $data['old']['maildir'] && is_dir($data['old']['maildir'])) {
            if(is_dir($data['new']['maildir'])) {
                exec("rm -f ".escapeshellcmd($data['new']['maildir']).'/*');
                rmdir($data['new']['maildir']);
                exec("rm -fr ".escapeshellcmd($data['new']['maildir']));
                //rmdir($data['new']['maildir']);
            }
            exec('mv -f '.escapeshellcmd($data['old']['maildir']).' '.escapeshellcmd($data['new']['maildir']));
            // exec('mv -f '.escapeshellcmd($data['old']['maildir']).'/* '.escapeshellcmd($data['new']['maildir']));