]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 444185: Make email_in.pl send errors with From as "mailfrom".
authormkanat%bugzilla.org <>
Sat, 12 Jul 2008 02:29:19 +0000 (02:29 +0000)
committermkanat%bugzilla.org <>
Sat, 12 Jul 2008 02:29:19 +0000 (02:29 +0000)
Patch By Vincent Castellano <surye80@gmail.com> r=mkanat, a=mkanat

email_in.pl

index 12be24471d7325c42e21b6a7bc837459d77dab91..4f21eeab1697bef5e889d00e0da5aa57ff2ee493 100644 (file)
@@ -311,7 +311,9 @@ sub die_handler {
        $msg =~ s/at .+ line.*$//ms;
        $msg =~ s/^Compilation failed in require.+$//ms;
        $msg = html_strip($msg);
-       my $reply = reply(to => $input_email, top_post => 1, body => "$msg\n");
+       my $from = Bugzilla->params->{'mailfrom'};
+       my $reply = reply(to => $input_email, from => $from, top_post => 1, 
+                         body => "$msg\n");
        MessageToMTA($reply->as_string);
     }
     print STDERR "$msg\n";