Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.3.3 (Beta), 1.3.4 (Beta)
-
None
-
Windows, Tomcat, JDK 5, Subversion
Description
If notifier configuration is committers = true, then for each SCM change the Author is added in To Address. Even if the Author is already a Recipient. The Author will only get one email, but the To Address will get right long.
for ( ChangeSet changeSet : changes )
{
String scmId = changeSet.getAuthor();
if ( StringUtils.isNotEmpty( scmId ) )
{
String email = developerToEmailMap.get( scmId );
if ( StringUtils.isEmpty( email ) )
else
{ // TODO: set a proper name InternetAddress to = new InternetAddress( email.trim() ); log.info( "Recipient: To '" + to + "'." ); message.addRecipient( Message.RecipientType.TO, to ); } }
}
<ciManagement>
<system>continuum</system>
<url>http://server/continuum/</url>
<notifiers>
<notifier>
<type>mail</type>
<sendOnError>true</sendOnError>
<sendOnFailure>true</sendOnFailure>
<sendOnSuccess>false</sendOnSuccess>
<sendOnWarning>true</sendOnWarning>
<configuration>
<committers>true</committers>
</configuration>
</notifier>
</notifiers>
</ciManagement>