From 5601df4505bb893aea5956bceefa28abf9014e5d Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Thu, 17 Feb 2005 07:54:47 +0000 Subject: [PATCH] =?utf8?q?Bug=20281733:=20testfile=20mail=20transport=20ca?= =?utf8?q?nnot=20write=20to=20testfile=20Patch=20By=20Fr=C3=83=C2=A9d?= =?utf8?q?=C3=83=C2=A9ric=20Buclin=20=20r=3Djoe=20a=3Dm?= =?utf8?q?yk?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/BugMail.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index fd1ac1a1c1..bfe1c897ed 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; -- 2.47.3