From 6f81758b41680f6d7f005c6abdc76e0303810969 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Thu, 22 Jan 2009 20:20:46 -0500
Subject: [PATCH] - Fixed bug FS#410 (http://bugtracker.ispconfig.org/index.php?do=details&task_id=410&project=3&order=tasktype&sort=asc).
---
server/plugins-available/mail_plugin.inc.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/plugins-available/mail_plugin.inc.php b/server/plugins-available/mail_plugin.inc.php
index 5b6ac4f..20d10e1 100644
--- a/server/plugins-available/mail_plugin.inc.php
+++ b/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']));
--
Gitblit v1.9.1