Return-Path: Delivered-To: apmail-continuum-issues-archive@www.apache.org Received: (qmail 9221 invoked from network); 29 Jun 2009 15:34:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jun 2009 15:34:26 -0000 Received: (qmail 10103 invoked by uid 500); 29 Jun 2009 15:34:37 -0000 Delivered-To: apmail-continuum-issues-archive@continuum.apache.org Received: (qmail 10057 invoked by uid 500); 29 Jun 2009 15:34:37 -0000 Mailing-List: contact issues-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list issues@continuum.apache.org Received: (qmail 10047 invoked by uid 99); 29 Jun 2009 15:34:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2009 15:34:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2009 15:34:26 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 66E0714A81E8 for ; Mon, 29 Jun 2009 10:34:05 -0500 (CDT) Message-ID: <13079981.17571246289645388.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Mon, 29 Jun 2009 10:34:05 -0500 (CDT) From: "Klaus Wienert (JIRA)" To: issues@continuum.apache.org Subject: [jira] Created: (CONTINUUM-2281) Same Recipiant will be added several times in Notification MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org Same Recipiant will be added several times in Notification ---------------------------------------------------------- Key: CONTINUUM-2281 URL: http://jira.codehaus.org/browse/CONTINUUM-2281 Project: Continuum Issue Type: Bug Components: Core system, Notifier - Mail Affects Versions: 1.3.3, 1.3.4 Environment: Windows, Tomcat, JDK 5, Subversion Reporter: Klaus Wienert Priority: Minor Attachments: 2009-06-29_171922.png 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. http://svn.apache.org/repos/asf/continuum/tags/continuum-1.3.3/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java for ( ChangeSet changeSet : changes ) { String scmId = changeSet.getAuthor(); if ( StringUtils.isNotEmpty( scmId ) ) { String email = developerToEmailMap.get( scmId ); if ( StringUtils.isEmpty( email ) ) { //TODO: Add a default domain so mail address won't be required log.warn( "no email address is defined in developers list for '" + scmId + "' scm id." ); } else { // TODO: set a proper name InternetAddress to = new InternetAddress( email.trim() ); log.info( "Recipient: To '" + to + "'." ); message.addRecipient( Message.RecipientType.TO, to ); } } } continuum http://server/continuum/ mail true true false true true -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira