From: lpsolit%gmail.com <> Date: Wed, 19 Mar 2008 03:16:11 +0000 (+0000) Subject: Bug 423733: mail_delivery_method = 'Test' doesn't generate a valid mbox file - Patch... X-Git-Tag: bugzilla-3.1.3~274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a3eb7f68ad1532a51e24d81a4164ad87948ef26;p=thirdparty%2Fbugzilla.git Bug 423733: mail_delivery_method = 'Test' doesn't generate a valid mbox file - Patch by Frédéric Buclin r=justdave a=LpSolit --- diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index c002fb3db3..9330486db5 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -133,7 +133,8 @@ sub MessageToMTA { if ($method eq "Test") { my $filename = bz_locations()->{'datadir'} . '/mailer.testfile'; open TESTFILE, '>>', $filename; - print TESTFILE "\n\n---\n\n" . $email->as_string; + # From - is required to be a valid mbox file. + print TESTFILE "\n\nFrom - " . $email->header('Date') . "\n" . $email->as_string; close TESTFILE; } else {