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.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php
index cbaa27bd..987d2948 100644
--- a/packages/spamd_db.php
+++ b/packages/spamd_db.php
@@ -58,28 +58,28 @@ if($_GET['action'] or $_POST['action']) {
/* 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("/usr/local/sbin/spamdb -d \"{$srcip}\" -T");
+ exec("/usr/local/sbin/spamdb -d \"{$srcip}\" -t");
delete_from_blacklist($srcip);
mwexec("/sbin/pfctl -q -t blacklist -T replace -f /var/db/blacklist.txt");
exec("echo spamdb -a {$srcip} > /tmp/tmp");
exec("/usr/local/sbin/spamdb -a {$srcip}");
} else if($action == "delete") {
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 -d \"{$srcip}\" -t");
delete_from_blacklist($srcip);
mwexec("/sbin/pfctl -q -t spamd -T delete $srcip");
mwexec("/sbin/pfctl -q -t blacklist -T replace -f /var/db/blacklist.txt");
} 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 -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 -d \"{$srcip}\" -T");
+ exec("/usr/local/sbin/spamdb -d \"{$srcip}\" -t");
exec("/usr/local/sbin/spamdb -a {$srcip} -t");
mwexec("/sbin/pfctl -q -t spamd -T add -f /var/db/blacklist.txt");
mwexec("/sbin/pfctl -q -t blacklist -T add -f /var/db/blacklist.txt");