From eee673cfa4b384ae6d92a76e6fbfeb96776f69da Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 19 Mar 2006 23:46:38 +0000 Subject: Delete prior items before adding as trapped --- packages/spamd_db.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/spamd_db.php') diff --git a/packages/spamd_db.php b/packages/spamd_db.php index 930afb50..c613e9b5 100644 --- a/packages/spamd_db.php +++ b/packages/spamd_db.php @@ -57,6 +57,9 @@ if($_GET['action'] or $_POST['action']) { $srcip = str_replace(" ","",$srcip); /* execute spamdb command */ if($action == "whitelist") { + exec("/usr/local/sbin/spamdb -d {$srcip}"); + exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -T"); + exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -t"); exec("echo spamdb -a {$srcip} > /tmp/tmp"); exec("/usr/local/sbin/spamdb -a {$srcip}"); } else if($action == "delete") { -- cgit v1.2.3