File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ function user_insert($event_name,$data) {
8181 exec ('chown -R ' .$ mail_config ['mailuser_name ' ].': ' .$ mail_config ['mailuser_group ' ].' ' .escapeshellcmd ($ data ['new ' ]['maildir ' ]));
8282 $ app ->log ('Created Maildir: ' .$ data ['new ' ]['maildir ' ],LOGLEVEL_DEBUG );
8383 }
84+
8485 }
8586
8687 function user_update ($ event_name ,$ data ) {
@@ -104,6 +105,9 @@ function user_update($event_name,$data) {
104105 rmdir ($ data ['old ' ]['maildir ' ]);
105106 $ app ->log ('Moved Maildir from: ' .$ data ['old ' ]['maildir ' ].' to ' .$ data ['new ' ]['maildir ' ],LOGLEVEL_DEBUG );
106107 }
108+ //This is to fix the maildrop quota not being rebuilt after the quota is changed.
109+ exec ("su -c 'maildirmake -q " .$ data ['new ' ]['quota ' ]."S " .escapeshellcmd ($ data ['new ' ]['maildir ' ])."' " .$ mail_config ['mailuser_name ' ]);
110+ $ app ->log ('Created Maildir: ' ."su -c 'maildirmake -q " .$ data ['new ' ]['quota ' ]."S " .escapeshellcmd ($ data ['new ' ]['maildir ' ])."' " .$ mail_config ['mailuser_name ' ],LOGLEVEL_DEBUG );
107111 }
108112
109113 function user_delete ($ event_name ,$ data ) {
You can’t perform that action at this time.
0 commit comments