From: lpsolit%gmail.com <> Date: Wed, 19 Mar 2008 03:17:52 +0000 (+0000) Subject: Bug 423733: mail_delivery_method = 'Test' doesn't generate a valid mbox file - Patch... X-Git-Tag: bugzilla-3.0.4~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2b8be0b29165f836159194baa3eb89a7f9828d3;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 8e18d5e319..d23574d85e 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -121,7 +121,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 {