File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,10 @@ function user_insert($event_name,$data) {
6767
6868 // Create the maildir, if it does not exist
6969 if (!is_dir ($ data ['new ' ]['maildir ' ])) {
70- exec ('mkdir -p ' .escapeshellcmd ($ data ['new ' ]['maildir ' ]));
71- exec ('maildirmake ' .escapeshellcmd ($ data ['new ' ]['maildir ' ]));
72- exec ('chown ' .$ mail_config ['mailuser_name ' ].': ' .$ mail_config ['mailuser_group ' ].' ' .escapeshellcmd ($ data ['new ' ]['maildir ' ]));
70+ exec ("su -c 'mkdir -p " .escapeshellcmd ($ data ['new ' ]['maildir ' ])."' " .$ mail_config ['mailuser_name ' ]);
71+ exec ("su -c 'maildirmake " .escapeshellcmd ($ data ['new ' ]['maildir ' ])."' " .$ mail_config ['mailuser_name ' ]);
72+ //exec('maildirmake '.escapeshellcmd($data['new']['maildir']));
73+ exec ('chown -R ' .$ mail_config ['mailuser_name ' ].': ' .$ mail_config ['mailuser_group ' ].' ' .escapeshellcmd ($ data ['new ' ]['maildir ' ]));
7374 $ app ->log ('Created Maildir: ' .$ data ['new ' ]['maildir ' ],LOGLEVEL_DEBUG );
7475 }
7576 }
You can’t perform that action at this time.
0 commit comments