You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2007/05/08 10:06:02 UTC

svn commit: r536117 - /webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/transport/mail/SimpleMailListener.java

Author: saminda
Date: Tue May  8 01:06:02 2007
New Revision: 536117

URL: http://svn.apache.org/viewvc?view=rev&rev=536117
Log:
Applied the patch from Hans to removed quotes. Thanks Hans 

Modified:
    webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/transport/mail/SimpleMailListener.java

Modified: webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/transport/mail/SimpleMailListener.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/transport/mail/SimpleMailListener.java?view=diff&rev=536117&r1=536116&r2=536117
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/transport/mail/SimpleMailListener.java (original)
+++ webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/transport/mail/SimpleMailListener.java Tue May  8 01:06:02 2007
@@ -418,7 +418,13 @@
             String values[] = msg.getHeader(headerName);
 
             if (values != null) {
-                return values[0];
+                String tmp = values[0];
+                if (tmp != null) {
+                    if (tmp.length() > 1 && tmp.startsWith("\"") && tmp.endsWith("\"")) {
+                        tmp = tmp.substring(1, tmp.length() - 1);
+                    }
+                }
+                return tmp;
             } else {
                 return null;
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org