continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r647001 - /continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
Date Thu, 10 Apr 2008 23:10:33 GMT
Author: olamy
Date: Thu Apr 10 16:10:27 2008
New Revision: 647001

URL: http://svn.apache.org/viewvc?rev=647001&view=rev
Log:
[CONTINUUM-860] multiple email addresses delimited with commas causes AddressException


Modified:
    continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java?rev=647001&r1=647000&r2=647001&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
Thu Apr 10 16:10:27 2008
@@ -585,7 +585,12 @@
         {
             return FALLBACK_FROM_MAILBOX;
         }
-
+        // olamy : CONTINUUM-860 if address contains commas we use only the first one
+        if ( address.contains( "," ) )
+        {
+            String[] addresses = StringUtils.split( address, "," );
+            return addresses[0];
+        }
         return address;
     }
 



Mime
View raw message