james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r179671 - /james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java
Date Thu, 02 Jun 2005 22:56:52 GMT
Author: noel
Date: Thu Jun  2 15:56:52 2005
New Revision: 179671

URL: http://svn.apache.org/viewcvs?rev=179671&view=rev
Log:
fix lazy code.  must have EACH check in a separate try {} block

Modified:
    james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java

Modified: james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java
URL: http://svn.apache.org/viewcvs/james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java?rev=179671&r1=179670&r2=179671&view=diff
==============================================================================
--- james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java (original)
+++ james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java Thu Jun  2 15:56:52
2005
@@ -338,6 +338,12 @@
         try {
             // hardcode which DNS RBL for the moment
             org.apache.james.dnsserver.DNSServer.getByName(reversedOctets + "sbl-xbl.spamhaus.org");
+            return true;
+        } catch (java.net.UnknownHostException uhe) {
+            // if it is unknown, it isn't blocked
+        }
+        try {
+            // hardcode which DNS RBL for the moment
             org.apache.james.dnsserver.DNSServer.getByName(reversedOctets + "dul.dnsbl.sorbs.net");
             return true;
         } catch (java.net.UnknownHostException uhe) {



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message