From: lpsolit%gmail.com <> Date: Mon, 22 Sep 2008 17:46:55 +0000 (+0000) Subject: Bug 455845: Emails have no header to indicate that they are auto-generated, and so... X-Git-Tag: bugzilla-3.3.1~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0988f1f34fee477a92bf3f371bb557dee9016e7c;p=thirdparty%2Fbugzilla.git Bug 455845: Emails have no header to indicate that they are auto-generated, and so get auto-responses - Patch by Ralf Hildebrandt r/a=mkanat --- diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 0fee0a3ec2..fc3f607847 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) = @_;