aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd_verify_to_address.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-20 04:46:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-20 04:46:18 +0000
commita3990b0648b7cf0eb616000efe2bb8d79f795a7b (patch)
tree479f365fc50896d53f7aa1ad2219b4dc8ba9d21b /packages/spamd_verify_to_address.php
parent2ff6df755dbc8ee1d99bc1d5d25d4bc9749c3a0d (diff)
downloadpfsense-packages-a3990b0648b7cf0eb616000efe2bb8d79f795a7b.tar.gz
pfsense-packages-a3990b0648b7cf0eb616000efe2bb8d79f795a7b.tar.bz2
pfsense-packages-a3990b0648b7cf0eb616000efe2bb8d79f795a7b.zip
Remove <> from email address list for comparison
Diffstat (limited to 'packages/spamd_verify_to_address.php')
-rw-r--r--packages/spamd_verify_to_address.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/spamd_verify_to_address.php b/packages/spamd_verify_to_address.php
index 27c3f7b5..56821370 100644
--- a/packages/spamd_verify_to_address.php
+++ b/packages/spamd_verify_to_address.php
@@ -70,6 +70,11 @@ if($debug) {
$current_blacklist = split("\n", `cat /var/db/blacklist.txt`);
/* suck current spamtrap emails into array */
$current_spamtrap = split("\n", `/usr/local/sbin/spamdb | grep SPAMTRAP | cut -d"|" -f2`);
+/* eliminate <> from email addresses */
+for($x=0; isset($current_spamtrap[$x]); $x++) {
+ $current_spamtrap[$x] = str_replace("<", "", $current_spamtrap[$x]);
+ $current_spamtrap[$x] = str_replace(">", "", $current_spamtrap[$x]);
+}
/* traverse list and find the dictionary attackers, etc */
foreach($grey_hosts as $grey) {