aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd_db.php
diff options
context:
space:
mode:
Diffstat (limited to 'packages/spamd_db.php')
-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 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") {