Skip to content
Snippets Groups Projects
Commit c2f53e76 authored by tbrehm's avatar tbrehm
Browse files

Fix in maildrop plugin.

parent b6108193
No related branches found
No related tags found
2 merge requests!46Master,!21Master
......@@ -158,7 +158,7 @@ class maildrop_plugin {
if($data["old"]["custom_mailfilter"] != $data["new"]["custom_mailfilter"] or
$data["old"]["move_junk"] != $data["new"]["move_junk"]) {
$app->log("Mailfilter config has been changed",LOGLEVEL_DEBUG);
if(trim($data["new"]["custom_mailfilter"]) != '') {
if(trim($data["new"]["custom_mailfilter"]) != '' or $data["new"]["move_junk"] != 'n') {
// Delete the old filter recipe
$email_parts = explode("@",$data["old"]["email"]);
$file = $this->mailfilter_config_dir.'/'.$email_parts[1].'/'.$email_parts[0].'/.mailfilter';
......
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