tbrehm
2009-01-27 cbda30058c0f61ae2afbd9085afcf841f32751a5
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']));