aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-19 23:46:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-19 23:46:05 +0000
commita15db0bf957494a992dd9e05f998534a998e28f5 (patch)
treec26ef6b4a878624c3aa9e0b2d980cfae4be8db4a /packages
parent248b28ebe450925fd87e852c79b33d9fab189c7b (diff)
downloadpfsense-packages-a15db0bf957494a992dd9e05f998534a998e28f5.tar.gz
pfsense-packages-a15db0bf957494a992dd9e05f998534a998e28f5.tar.bz2
pfsense-packages-a15db0bf957494a992dd9e05f998534a998e28f5.zip
Delete prior items before adding as trapped
Diffstat (limited to 'packages')
-rw-r--r--packages/spamd_db.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php
index a65e3355..930afb50 100644
--- a/packages/spamd_db.php
+++ b/packages/spamd_db.php
@@ -66,9 +66,12 @@ if($_GET['action'] or $_POST['action']) {
} 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 -d \"<{$srcip}>\" -t");
exec("/usr/local/sbin/spamdb -a {$srcip} -T");
} else if($action == "trapped") {
+ 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");
}
/* signal a reload for real time effect. */