From a3990b0648b7cf0eb616000efe2bb8d79f795a7b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 20 Mar 2006 04:46:18 +0000 Subject: Remove <> from email address list for comparison --- packages/spamd_verify_to_address.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages') 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) { -- cgit v1.2.3