Add Auto-Submitted header to new version notification mails


#1

Please add the header “Auto-Submitted: auto-generated” to the emails that are automatically sent to admins, such as new version notifications.

Inclusion of this header would greatly help simplify email filtering rules, and is the recommended way to signal to “out of office” responders that no reply should be generated. Further technical details of the header are given in:

[ul]
[li] IANA keyword registry
[/li][li] RFC3834
[/li][li] RFC5230
[/li][/ul]

I assume the following would work:


--- plugins/CoreUpdater/UpdateCommunication.php.dist	2014-11-04 21:35:28.000000000 +0000
+++ plugins/CoreUpdater/UpdateCommunication.php	2015-01-07 16:56:54.000000000 +0000
@@ -97,4 +97,5 @@
             $mail->addTo($superUser['email']);
             $mail->setSubject($subject);
+            $mail->addHeader('Auto-Submitted', 'auto-generated');
             $mail->setBodyText($message);
             $mail->send();

http://framework.zend.com/manual/1.11/en/zend.mail.additional-headers.html