diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-20 04:46:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-20 04:46:18 +0000 |
commit | a3990b0648b7cf0eb616000efe2bb8d79f795a7b (patch) | |
tree | 479f365fc50896d53f7aa1ad2219b4dc8ba9d21b | |
parent | 2ff6df755dbc8ee1d99bc1d5d25d4bc9749c3a0d (diff) | |
download | pfsense-packages-a3990b0648b7cf0eb616000efe2bb8d79f795a7b.tar.gz pfsense-packages-a3990b0648b7cf0eb616000efe2bb8d79f795a7b.tar.bz2 pfsense-packages-a3990b0648b7cf0eb616000efe2bb8d79f795a7b.zip |
Remove <> from email address list for comparison
-rw-r--r-- | packages/spamd_verify_to_address.php | 5 |
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) { |