diff options
author | lpsolit%gmail.com <> | 2008-03-19 04:16:11 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-03-19 04:16:11 +0100 |
commit | 7a3eb7f68ad1532a51e24d81a4164ad87948ef26 (patch) | |
tree | 69633d511c266d47b62d4f798828681b95758c67 | |
parent | 849b1c1357ca06a56ff9cd82adf67fd67c8878cb (diff) | |
download | bugzilla-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.pm | 3 |
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 { |