]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 455845: Emails have no header to indicate that they are auto-generated, and so...
authorlpsolit%gmail.com <>
Mon, 22 Sep 2008 17:46:55 +0000 (17:46 +0000)
committerlpsolit%gmail.com <>
Mon, 22 Sep 2008 17:46:55 +0000 (17:46 +0000)
Bugzilla/Mailer.pm

index 0fee0a3ec2d8e2f7a3cbf6659701ed8450c0b2b8..fc3f607847aff33c16d6ae064c65449aeea2af26 100644 (file)
@@ -68,6 +68,10 @@ sub MessageToMTA {
     # get sslbase). Also, we want this to stay the same even if
     # the admin changes the "ssl" parameter.
     $email->header_set('X-Bugzilla-URL', Bugzilla->params->{'urlbase'});
+    
+    # We add this header to mark the mail as "auto-generated" and
+    # thus to hopefully avoid auto replies.
+    $email->header_set('Auto-Submitted', 'auto-generated');
 
     $email->walk_parts(sub {
         my ($part) = @_;