tbrehm
2009-02-12 a3e2d2089abfe14a5564c565b15fdd5c8b73e3d2
Fixed: FS#518 - maildirsize creation seems not to work immediately 
1 files modified
6 ■■■■ changed files
server/plugins-available/mail_plugin.inc.php 6 ●●●● patch | view | raw | blame | history
server/plugins-available/mail_plugin.inc.php
@@ -98,7 +98,11 @@
            //* 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($maildomain_path)."' ".$mail_config['mailuser_name']); // Avoid maildirmake quota bug, see debian bug #214911
            $app->log('Created Maildir: '."su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name'],LOGLEVEL_DEBUG);
        }
        }
        //* Set the maildir quota
        exec("su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($data['new']['maildir'])."' ".$mail_config['mailuser_name']);
        $app->log('Set Maildir quota: '."su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($data['new']['maildir'])."' ".$mail_config['mailuser_name'],LOGLEVEL_DEBUG);
    }
    
    function user_update($event_name,$data) {