From 659047f0bfcc90b23cdd20e7e0675cb11142343a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 22 Sep 2008 17:54:05 +0000 Subject: [PATCH] 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 --- Bugzilla/Mailer.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index c790d179fd..2fbdbae7a9 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -57,6 +57,11 @@ sub MessageToMTA { return if $method eq 'None'; my $email = ref($msg) ? $msg : Email::MIME->new($msg); + + # 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) = @_; return if $part->parts > 1; # Top-level -- 2.47.2