From 3721d3e94ebc2d839492f11b3be8847344060eb3 Mon Sep 17 00:00:00 2001 From: tbrehm Date: Sun, 28 Jun 2009 13:04:20 +0000 Subject: [PATCH] Fixed: FS#764 - spamfilter not well updated after change of domain --- interface/web/mail/mail_domain_edit.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interface/web/mail/mail_domain_edit.php b/interface/web/mail/mail_domain_edit.php index 74ea1702b..ee16ad6a1 100644 --- a/interface/web/mail/mail_domain_edit.php +++ b/interface/web/mail/mail_domain_edit.php @@ -298,6 +298,11 @@ class page_action extends tform_actions { } } + //* Delete the old spamfilter record + $tmp = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = '@".mysql_real_escape_string($this->oldDataRecord["domain"])."'"); + $app->db->datalogDelete('spamfilter_users', 'id', $tmp["id"]); + unset($tmp); + } // end if domain name changed } -- GitLab