From 248b28ebe450925fd87e852c79b33d9fab189c7b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 19 Mar 2006 23:44:55 +0000 Subject: Delete prior items before adding as trapped --- packages/spamd_db.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/spamd_db.php b/packages/spamd_db.php index 25ef4ab3..a65e3355 100644 --- a/packages/spamd_db.php +++ b/packages/spamd_db.php @@ -64,6 +64,9 @@ if($_GET['action'] or $_POST['action']) { exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -T"); exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -t"); } else if($action == "spamtrap") { + exec("/usr/local/sbin/spamdb -d {$srcip}"); + exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -T"); + exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -t"); exec("/usr/local/sbin/spamdb -a {$srcip} -T"); } else if($action == "trapped") { exec("/usr/local/sbin/spamdb -a {$srcip} -t"); -- cgit v1.2.3