We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac6ef6 commit 0b9a788Copy full SHA for 0b9a788
server/plugins-available/mail_plugin.inc.php
@@ -81,6 +81,9 @@ function user_insert($event_name,$data) {
81
exec('chown -R '.$mail_config['mailuser_name'].':'.$mail_config['mailuser_group'].' '.escapeshellcmd($data['new']['maildir']));
82
$app->log('Created Maildir: '.$data['new']['maildir'],LOGLEVEL_DEBUG);
83
}
84
+ //This is to fix the maildrop quota not being rebuilt after the quota is changed.
85
+ exec("su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($data['new']['maildir'])."' ".$mail_config['mailuser_name']);
86
+ $app->log('Created Maildir: '."su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($data['new']['maildir'])."' ".$mail_config['mailuser_name'],LOGLEVEL_DEBUG);
87
88
89
0 commit comments