From 5601df4505bb893aea5956bceefa28abf9014e5d Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Thu, 17 Feb 2005 07:54:47 +0000 Subject: Bug 281733: testfile mail transport cannot write to testfile Patch By Frédéric Buclin r=joe a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/BugMail.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Bugzilla/BugMail.pm') diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index fd1ac1a1c..bfe1c897e 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -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; -- cgit v1.2.3-24-g4f1b