You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2005/06/03 00:56:52 UTC
svn commit: r179671 -
/james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java
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