summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-03-19 04:16:11 +0100
committerlpsolit%gmail.com <>2008-03-19 04:16:11 +0100
commit7a3eb7f68ad1532a51e24d81a4164ad87948ef26 (patch)
tree69633d511c266d47b62d4f798828681b95758c67
parent849b1c1357ca06a56ff9cd82adf67fd67c8878cb (diff)
downloadbugzilla-7a3eb7f68ad1532a51e24d81a4164ad87948ef26.tar.gz
bugzilla-7a3eb7f68ad1532a51e24d81a4164ad87948ef26.tar.xz
Bug 423733: mail_delivery_method = 'Test' doesn't generate a valid mbox file - Patch by Frédéric Buclin <LpSolit@gmail.com> r=justdave a=LpSolit
-rw-r--r--Bugzilla/Mailer.pm3
1 files changed, 2 insertions, 1 deletions
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 - <date> is required to be a valid mbox file.
+ print TESTFILE "\n\nFrom - " . $email->header('Date') . "\n" . $email->as_string;
close TESTFILE;
}
else {