Skip to content

Commit a3e2d20

Browse files
committed
Fixed: FS#518 - maildirsize creation seems not to work immediately
1 parent 4fa7eb0 commit a3e2d20

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/plugins-available/mail_plugin.inc.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ function user_insert($event_name,$data) {
9898
//* This is to fix the maildrop quota not being rebuilt after the quota is changed.
9999
exec("su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']); // Avoid maildirmake quota bug, see debian bug #214911
100100
$app->log('Created Maildir: '."su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name'],LOGLEVEL_DEBUG);
101-
}
101+
}
102+
103+
//* Set the maildir quota
104+
exec("su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($data['new']['maildir'])."' ".$mail_config['mailuser_name']);
105+
$app->log('Set Maildir quota: '."su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($data['new']['maildir'])."' ".$mail_config['mailuser_name'],LOGLEVEL_DEBUG);
102106
}
103107

104108
function user_update($event_name,$data) {

0 commit comments

Comments
 (0)