james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joac...@apache.org
Subject svn commit: r481876 - /james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java
Date Sun, 03 Dec 2006 20:32:13 GMT
Author: joachim
Date: Sun Dec  3 12:32:12 2006
New Revision: 481876

URL: http://svn.apache.org/viewvc?view=rev&rev=481876
Log:
fixed JDK 1.4 compliance for JAMES-712	

Modified:
    james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java

Modified: james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java?view=diff&rev=481876&r1=481875&r2=481876
==============================================================================
--- james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java (original)
+++ james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java Sun
Dec  3 12:32:12 2006
@@ -413,7 +413,7 @@
                  e = (MessagingException)ex;
                  if (ex instanceof SMTPAddressFailedException) {
                      SMTPAddressFailedException exc = (SMTPAddressFailedException) ex;
-                     sb.append(" ( " + exc.getAddress() + " - [" + exc.getMessage().replace("\n",
"") + "] )");
+                     sb.append(" ( " + exc.getAddress() + " - [" + exc.getMessage().replaceAll("\\n",
"") + "] )");
                      smtpExFound = true;
                  } 
              }
@@ -430,7 +430,7 @@
                     sb.append(exception.getValidUnsentAddresses());
                 }
                 sb.append(" - [");
-                sb.append(exception.getMessage().replace("\n", ""));
+                sb.append(exception.getMessage().replaceAll("\\n", ""));
                 sb.append("] )");
              }
              return sb.toString();



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


Mime
View raw message