diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-19 23:44:55 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-19 23:44:55 +0000 |
commit | 248b28ebe450925fd87e852c79b33d9fab189c7b (patch) | |
tree | 7e64ad147160924c3aba4cf87c5175ee1851c1b2 /packages | |
parent | d9100d29361bffdf41e25d02b09a3fc510aeafac (diff) | |
download | pfsense-packages-248b28ebe450925fd87e852c79b33d9fab189c7b.tar.gz pfsense-packages-248b28ebe450925fd87e852c79b33d9fab189c7b.tar.bz2 pfsense-packages-248b28ebe450925fd87e852c79b33d9fab189c7b.zip |
Delete prior items before adding as trapped
Diffstat (limited to 'packages')
-rw-r--r-- | packages/spamd_db.php | 3 |
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"); |