diff --git a/interface/web/mail/mail_domain_del.php b/interface/web/mail/mail_domain_del.php index d686341e63b1c69bb39fdaa64127c8606e7cae26..550fa9238ac69dbcd83f8e0d3c854c8eb83169d7 100644 --- a/interface/web/mail/mail_domain_del.php +++ b/interface/web/mail/mail_domain_del.php @@ -78,7 +78,7 @@ class page_action extends tform_actions { } // Delete all spamfilters that belong to this domain - $records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email = '@".$app->db->quote($domain)."'"); + $records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email = '%@".$app->db->quote($domain)."'"); foreach($records as $rec) { $app->db->datalogDelete('spamfilter_users','id',$rec['id']); }