From 0b9a788e80bdc5a7c5b3ea76cd10531d55be5d6e Mon Sep 17 00:00:00 2001 From: quentusrex <quentusrex@ispconfig3> Date: Fri, 31 Oct 2008 15:22:30 +0000 Subject: [PATCH] The mail box quota wasn't being run on mailbox creation. I had previously only fixed it when the mailbox is changed. They both work fine now. --- server/plugins-available/mail_plugin.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/plugins-available/mail_plugin.inc.php b/server/plugins-available/mail_plugin.inc.php index 5a5dd016b4..c0a29adbc3 100644 --- a/server/plugins-available/mail_plugin.inc.php +++ b/server/plugins-available/mail_plugin.inc.php @@ -81,6 +81,9 @@ class mail_plugin { exec('chown -R '.$mail_config['mailuser_name'].':'.$mail_config['mailuser_group'].' '.escapeshellcmd($data['new']['maildir'])); $app->log('Created Maildir: '.$data['new']['maildir'],LOGLEVEL_DEBUG); } + //This is to fix the maildrop quota not being rebuilt after the quota is changed. + exec("su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($data['new']['maildir'])."' ".$mail_config['mailuser_name']); + $app->log('Created Maildir: '."su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($data['new']['maildir'])."' ".$mail_config['mailuser_name'],LOGLEVEL_DEBUG); } -- GitLab