james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/mailet MailAddress.java
Date Wed, 17 Apr 2002 15:54:51 GMT
danny       02/04/17 08:54:51

  Modified:    src/java/org/apache/mailet MailAddress.java
  Log:
  strip unnessesary escap slashes from ip address domain literals in square brackets
  there is no need for any slashes in this, so we can just strip them all.
  
  Revision  Changes    Path
  1.4       +4 -0      jakarta-james/src/java/org/apache/mailet/MailAddress.java
  
  Index: MailAddress.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/mailet/MailAddress.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MailAddress.java	29 Sep 2001 05:03:39 -0000	1.3
  +++ MailAddress.java	17 Apr 2002 15:54:51 -0000	1.4
  @@ -328,6 +328,10 @@
       }
   
       private String parseDotNum(String address) throws ParseException {
  +        //throw away all irrelevant '\' they're not necessary for escaping of '.' or digits,
and are illegal as part of the domain-literal
  +        while(address.indexOf("\\")>-1){
  +             address= address.substring(0,address.indexOf("\\")) + address.substring(address.indexOf("\\")+1);
  +        }
           StringBuffer resultSB = new StringBuffer();
           //we were passed the string with pos pointing the the [ char.
           // take the first char ([), put it in the result buffer and increment pos
  
  
  

--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message