Bug 281733: testfile mail transport cannot write to testfile

Patch By Frédéric Buclin <LpSolit@gmail.com> r=joe a=myk


git-svn-id: svn://10.0.0.236/trunk@169294 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%kerio.com
2005-02-16 23:54:47 +00:00
parent 2757fe9656
commit fd2963f916

View File

@@ -898,7 +898,10 @@ sub MessageToMTA ($) {
push @args, Server => Param("smtpserver");
}
my $mailer = new Mail::Mailer Param("maildeliverymethod"), @args;
if (Param("maildeliverymethod") eq "testfile") {
$Mail::Mailer::testfile::config{outfile} = "$datadir/mailer.testfile";
}
$msg =~ /(.*?)\n\n(.*)/ms;
my @header_lines = split(/\n/, $1);
my $body = $2;