Commit 7a3eb7f6 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 423733: mail_delivery_method = 'Test' doesn't generate a valid mbox file -…

Bug 423733: mail_delivery_method = 'Test' doesn't generate a valid mbox file - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=justdave a=LpSolit
parent 849b1c13
......@@ -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 - <date> is required to be a valid mbox file.
print TESTFILE "\n\nFrom - " . $email->header('Date') . "\n" . $email->as_string;
close TESTFILE;
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment