--- /home/noel/src2/src/java/org/apache/james/transport/matchers/InSpammerBlacklist.java	Sun Apr 21 14:12:42 2002
+++ InSpammerBlacklist.java	Wed May 22 22:55:43 2002
@@ -42,15 +42,14 @@
     public Collection match(Mail mail) {
         String host = mail.getRemoteAddr();
         try {
-            //Have to reverse the octets first
-            StringTokenizer st = new StringTokenizer(host, " .", false);
-            host = network;
-            while (st.hasMoreTokens()) {
-                host = st.nextToken() + ".";
-            }
+			//Have to reverse the octets first
+			StringBuffer sb = new StringBuffer();
+			StringTokenizer st = new StringTokenizer(host, " .", false);
+
+			while (st.hasMoreTokens()) sb.insert(0, st.nextToken() + ".");
 
             //Try to look it up
-            InetAddress.getByName(host);
+            InetAddress.getByName(sb.append(network).toString());
 
             //If we got here, that's bad... it means the host
             //  was found in the blacklist
