diff options
Diffstat (limited to 'packages/spamd_verify_to_address.php')
-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) { |