aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-19 23:44:55 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-19 23:44:55 +0000
commit248b28ebe450925fd87e852c79b33d9fab189c7b (patch)
tree7e64ad147160924c3aba4cf87c5175ee1851c1b2
parentd9100d29361bffdf41e25d02b09a3fc510aeafac (diff)
downloadpfsense-packages-248b28ebe450925fd87e852c79b33d9fab189c7b.tar.gz
pfsense-packages-248b28ebe450925fd87e852c79b33d9fab189c7b.tar.bz2
pfsense-packages-248b28ebe450925fd87e852c79b33d9fab189c7b.zip
Delete prior items before adding as trapped
-rw-r--r--packages/spamd_db.php3
1 files changed, 3 insertions, 0 deletions
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");