Author: norman
Date: Sat Feb 23 07:47:23 2008
New Revision: 630454

URL: http://svn.apache.org/viewvc?rev=630454&view=rev
Log:
Finally fix JSPF-60 ( all tests pass again )

Modified:
    james/jspf/trunk/src/main/java/org/apache/james/jspf/core/SPFSession.java

Modified: 
james/jspf/trunk/src/main/java/org/apache/james/jspf/core/SPFSession.java
URL: 
http://svn.apache.org/viewvc/james/jspf/trunk/src/main/java/org/apache/james/jspf/core/SPFSession.java?rev=630454&r1=630453&r2=630454&view=diff
==============================================================================
--- james/jspf/trunk/src/main/java/org/apache/james/jspf/core/SPFSession.java 
(original)
+++ james/jspf/trunk/src/main/java/org/apache/james/jspf/core/SPFSession.java 
Sat Feb 23 07:47:23 2008
@@ -99,14 +99,14 @@
             this.inAddress = IPAddr.getInAddress(clientIP);
         } catch (PermErrorException e) {
             // ip was not rfc conform
-               this.setCurrentResultExpanded(e.getResult());
+            this.setCurrentResultExpanded(e.getResult());
         }
 
         // setup the data!
         try {
-                       setupData(mailFrom, hostName);
+            setupData(mailFrom, hostName);
                } catch (NoneException e) {
-                       this.setCurrentResultExpanded(e.getResult());
+            this.setCurrentResultExpanded(e.getResult());
                }
     }
 
@@ -133,7 +133,7 @@
             
             if (fromParts.length > 1) {
                 this.senderDomain = fromParts[fromParts.length -1];
-                this.currentSenderPart = mailFrom.substring(0, 
mailFrom.length() - senderDomain.length() + 1);
+                this.currentSenderPart = mailFrom.substring(0, 
mailFrom.length() - senderDomain.length() - 1);
             } else {
                 this.currentSenderPart = "postmaster";
                 this.senderDomain = mailFrom;



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to