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 2007/01/12 12:10:37 UTC

svn commit: r495553 - /james/server/branches/v2.3/src/java/org/apache/mailet/MailAddress.java

Author: norman
Date: Fri Jan 12 03:10:36 2007
New Revision: 495553

URL: http://svn.apache.org/viewvc?view=rev&rev=495553
Log:
Backport fix for JAMES-757

Modified:
    james/server/branches/v2.3/src/java/org/apache/mailet/MailAddress.java

Modified: james/server/branches/v2.3/src/java/org/apache/mailet/MailAddress.java
URL: http://svn.apache.org/viewvc/james/server/branches/v2.3/src/java/org/apache/mailet/MailAddress.java?view=diff&rev=495553&r1=495552&r2=495553
==============================================================================
--- james/server/branches/v2.3/src/java/org/apache/mailet/MailAddress.java (original)
+++ james/server/branches/v2.3/src/java/org/apache/mailet/MailAddress.java Fri Jan 12 03:10:36 2007
@@ -170,9 +170,7 @@
      * @throws  ParseException    if the parse failed
      */
     public MailAddress(String newUser, String newHost) throws ParseException {
-        /* NEEDS TO BE REWORKED TO VALIDATE EACH CHAR */
-        user = newUser;
-        host = newHost;
+        this(newUser+ "@" + newHost);
     }
 
     /**
@@ -218,6 +216,12 @@
         return addressBuffer.toString();
     }
 
+    
+    /**
+     * Return MailAddress as InternetAddress
+     * 
+     * @return the address
+     */
     public InternetAddress toInternetAddress() {
         try {
             return new InternetAddress(toString());



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