Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6703

Allow for selection of Cc:, Bcc: fields for email recipients on global recipient list

    Details

    • Similar Issues:

      Description

      Hello,

      a common use case for this plugin is that the the global recipient list contains addresses of people who are not actually involved in breaking or fixing a build, but who still would like to get informed about breaks and fixes.

      It would be very useful to have those people addressed in the CC: field of emails, instead of adding them to the "To:" field. This will also increase the awareness of the "real" breakers when a build fails.

      Such a distinction (To vs Cc/Bcc) will only be needed for the global recipient list, which could greatly simplify the implementation of this feature. I figure that support for some prefix in the list, like "CC:recipient@foobar.com", could be sufficient.

      Thanks a lot for this really powerful and extremely useful plugin!

        Attachments

          Activity

          Hide
          slide_o_mix Alex Earl added a comment -

          I'm not sure Bcc is such a good idea, but Cc would probably be fine.

          Show
          slide_o_mix Alex Earl added a comment - I'm not sure Bcc is such a good idea, but Cc would probably be fine.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: slide
          Path:
          src/main/java/hudson/plugins/emailext/EmailRecepientUtils.java
          src/main/java/hudson/plugins/emailext/EmailRecipientUtils.java
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java
          src/test/java/hudson/plugins/emailext/EmailRecepientUtilsTest.java
          src/test/java/hudson/plugins/emailext/EmailRecipientUtilsTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/4e7e05ad87e894814dd15c2516c1273bb384c2b4
          Log:
          Fix JENKINS-6703

          • Email addresses can now be prepended with cc: to denote that the email should be sent to them as a CC
          • Also fixed spelling of files and classes
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: slide Path: src/main/java/hudson/plugins/emailext/EmailRecepientUtils.java src/main/java/hudson/plugins/emailext/EmailRecipientUtils.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java src/test/java/hudson/plugins/emailext/EmailRecepientUtilsTest.java src/test/java/hudson/plugins/emailext/EmailRecipientUtilsTest.java http://jenkins-ci.org/commit/email-ext-plugin/4e7e05ad87e894814dd15c2516c1273bb384c2b4 Log: Fix JENKINS-6703 Email addresses can now be prepended with cc: to denote that the email should be sent to them as a CC Also fixed spelling of files and classes
          Hide
          krissap Chris J added a comment -

          I did not tested yet but thank you Slide for working on this!
          This will be very useful.

          Show
          krissap Chris J added a comment - I did not tested yet but thank you Slide for working on this! This will be very useful.
          Hide
          geneliu Gene Liu added a comment -

          This feature is really what we are looking for.
          I did a test as below –
          1. Jenkins ver. 1.447.1.1 (Jenkins Enterprise by CloudBees 12.05)
          2. Jenkins Email Extension Plugin 2.24.1 (note: upgraded from 2.14 manually from http://updates.jenkins-ci.org/download/plugins/)
          3. Set email address with either CC: or cc: prefix in global recipient list
          4. Error
          16:56:43 Sending email for trigger: Failure
          16:56:43 Failed to create e-mail address for CC:sam-pnt@list.mycompany.com
          16:56:43 Sending email to: Gene.Liu@mycompany.com
          16:56:45
          17:01:34 Deleting project workspace... done
          17:01:34
          17:01:34 Notifying upstream projects of job completion
          17:01:34 Finished: FAILURE

          Show
          geneliu Gene Liu added a comment - This feature is really what we are looking for. I did a test as below – 1. Jenkins ver. 1.447.1.1 (Jenkins Enterprise by CloudBees 12.05) 2. Jenkins Email Extension Plugin 2.24.1 (note: upgraded from 2.14 manually from http://updates.jenkins-ci.org/download/plugins/ ) 3. Set email address with either CC: or cc: prefix in global recipient list 4. Error 16:56:43 Sending email for trigger: Failure 16:56:43 Failed to create e-mail address for CC:sam-pnt@list.mycompany.com 16:56:43 Sending email to: Gene.Liu@mycompany.com 16:56:45 17:01:34 Deleting project workspace... done 17:01:34 17:01:34 Notifying upstream projects of job completion 17:01:34 Finished: FAILURE
          Hide
          geneliu Gene Liu added a comment -

          Please just ignore my previous report. The email CC function works as expected.
          After a clean up of my jenkins, I did a successful email sending out with cc:(lower case) prefix

          Good job Slide, thanks!

          Show
          geneliu Gene Liu added a comment - Please just ignore my previous report. The email CC function works as expected. After a clean up of my jenkins, I did a successful email sending out with cc:(lower case) prefix Good job Slide, thanks!

            People

            • Assignee:
              Unassigned
              Reporter:
              arostfx arostfx
            • Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: