]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 423733: mail_delivery_method = 'Test' doesn't generate a valid mbox file - Patch...
authorlpsolit%gmail.com <>
Wed, 19 Mar 2008 03:16:11 +0000 (03:16 +0000)
committerlpsolit%gmail.com <>
Wed, 19 Mar 2008 03:16:11 +0000 (03:16 +0000)
Bugzilla/Mailer.pm

index c002fb3db3792cd1c8bb1a01c5baacaa29208498..9330486db51ca48c1b5fb975d11cd30b6272993d 100644 (file)
@@ -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 {