From f669291d8a32dd78f7fb2ab05470c7a5c7e402bf Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sat, 20 Dec 2008 09:53:53 -0500 Subject: [PATCH] Fixed spamfilter items that were not replicated to all servers they belong to. --- interface/web/mail/mail_domain_del.php | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/interface/web/mail/mail_domain_del.php b/interface/web/mail/mail_domain_del.php index f9fbc09..1e62ac6 100644 --- a/interface/web/mail/mail_domain_del.php +++ b/interface/web/mail/mail_domain_del.php @@ -77,7 +77,11 @@ $app->db->datalogDelete('mail_user','mailuser_id',$rec['id']); } - + // Delete all spamfilters that belong to this 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']); + } } } -- Gitblit v1.9.1