summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-09-22 19:46:55 +0200
committerlpsolit%gmail.com <>2008-09-22 19:46:55 +0200
commit0988f1f34fee477a92bf3f371bb557dee9016e7c (patch)
tree6890f05fa640fbb90717f8d06b5e119cadabba59 /Bugzilla
parentcaca2a3863097103e788766c23e74c58b9fff2a0 (diff)
downloadbugzilla-0988f1f34fee477a92bf3f371bb557dee9016e7c.tar.gz
bugzilla-0988f1f34fee477a92bf3f371bb557dee9016e7c.tar.xz
Bug 455845: Emails have no header to indicate that they are auto-generated, and so get auto-responses - Patch by Ralf Hildebrandt <ralf.hildebrandt@charite.de> r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Mailer.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm
index 0fee0a3ec..fc3f60784 100644
--- a/Bugzilla/Mailer.pm
+++ b/Bugzilla/Mailer.pm
@@ -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) = @_;