vogelor
2009-02-09 e2ecb6dde015ad0de48c2ad767369c1fbc3622d8
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']));