зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
7df83bead8
Коммит
78009b95ac
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче