From: mkanat%kerio.com <> Date: Thu, 17 Feb 2005 07:54:47 +0000 (+0000) Subject: Bug 281733: testfile mail transport cannot write to testfile X-Git-Tag: bugzilla-2.19.3~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5601df4505bb893aea5956bceefa28abf9014e5d;p=thirdparty%2Fbugzilla.git Bug 281733: testfile mail transport cannot write to testfile Patch By Frédéric Buclin r=joe a=myk --- 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;