Skip to content

Commit c2f53e7

Browse files
committed
Fix in maildrop plugin.
1 parent b610819 commit c2f53e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/maildrop_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function update($event_name,$data) {
158158
if($data["old"]["custom_mailfilter"] != $data["new"]["custom_mailfilter"] or
159159
$data["old"]["move_junk"] != $data["new"]["move_junk"]) {
160160
$app->log("Mailfilter config has been changed",LOGLEVEL_DEBUG);
161-
if(trim($data["new"]["custom_mailfilter"]) != '') {
161+
if(trim($data["new"]["custom_mailfilter"]) != '' or $data["new"]["move_junk"] != 'n') {
162162
// Delete the old filter recipe
163163
$email_parts = explode("@",$data["old"]["email"]);
164164
$file = $this->mailfilter_config_dir.'/'.$email_parts[1].'/'.$email_parts[0].'/.mailfilter';

0 commit comments

Comments
 (0)