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

Automated emails send from mailer-plugin should include headers identifying them as automated

      Emails, which are automated should include an Auto-submitted header. Mail servers are then required to NOT send automated responses in response to these emails.

      http://tools.ietf.org/html/rfc3834

      • Automatic responses SHOULD NOT be issued in response to any
        message which contains an Auto-Submitted header field (see below),
        where that field has any value other than "no".

      The proposed patch INCLUDES the 'Auto-Submitted' on all outbound emails created by the plugin. This header is defined as follows:

      5. The Auto-Submitted header field

      The purpose of the Auto-Submitted header field is to indicate that
      the message was originated by an automatic process, or an automatic
      responder, rather than by a human; and to facilitate automatic
      filtering of messages from signal paths for which automatically
      generated messages and automatic responses are not desirable.

      ...
      The auto-generated keyword:

      • SHOULD be used on messages generated by automatic (often periodic)
        processes (such as UNIX "cron jobs") which are not direct
        responses to other messages,

      The Jenkins mailer-plugin creates emails by an automatic process and therefore SHOULD contain this header.

          [JENKINS-25089] Automated emails send from mailer-plugin should include headers identifying them as automated

          Brian Egge added a comment -

          Brian Egge added a comment - The fix has been merged into the trunk: https://github.com/jenkinsci/mailer-plugin/commit/11142e5f43e55d5bb0f5dd2c8297e737cf122307

          I don't know what happened, but this commit is not in the git history of https://github.com/jenkinsci/mailer-plugin

          git show 11142e5f43e55d5bb0f5dd2c8297e737cf122307
          fatal: bad object 11142e5f43e55d5bb0f5dd2c8297e737cf122307
          
          mailer-plugin (master=)$ git log | grep -i Auto-Submitted
          mailer-plugin (master=)$
          

          Carsten Pfeiffer added a comment - I don't know what happened, but this commit is not in the git history of https://github.com/jenkinsci/mailer-plugin git show 11142e5f43e55d5bb0f5dd2c8297e737cf122307 fatal: bad object 11142e5f43e55d5bb0f5dd2c8297e737cf122307 mailer-plugin (master=)$ git log | grep -i Auto-Submitted mailer-plugin (master=)$

          Carsten Pfeiffer added a comment - I added it again in https://github.com/jenkinsci/mailer-plugin/pull/37

          AFAICS, the PR was merged and the fix is part of mailer-1.26+.

          Carsten Pfeiffer added a comment - AFAICS, the PR was merged and the fix is part of mailer-1.26+.

            capf Carsten Pfeiffer
            brianegge Brian Egge
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: