Skip to content
Snippets Groups Projects
Commit 097ad60d authored by Carsten's avatar Carsten
Browse files

fix: create sieve directory / change to maildir before symlinking

parent 3d3f4704
No related branches found
No related tags found
No related merge requests found
......@@ -205,7 +205,12 @@ class maildeliver_plugin {
$tpl->setVar('addresses', $address_str);
if ( ! is_dir($data["new"]["maildir"].'/sieve/') ) {
$app->system->mkdirpath($data["new"]["maildir"].'/sieve/', 0700, $mail_config['mailuser_name'], $mail_config['mailuser_group']);
}
file_put_contents($sieve_file_isp, $tpl->grab());
chdir($data["new"]["maildir"]);
//* create symlink to activate sieve script
symlink("sieve/ispconfig.sieve", ".sieve") or $app->log("Unable to create symlink to active sieve filter", LOGLEVEL_WARN);
unset($tpl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment