From 7a3eb7f68ad1532a51e24d81a4164ad87948ef26 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 19 Mar 2008 03:16:11 +0000 Subject: Bug 423733: mail_delivery_method = 'Test' doesn't generate a valid mbox file - Patch by Frédéric Buclin r=justdave a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Mailer.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Mailer.pm') diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index c002fb3db..9330486db 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 { -- cgit v1.2.3-24-g4f1b