[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-86-g560496d

Alex Vandiver alexmv at bestpractical.com
Tue Jun 15 14:14:55 EDT 2010


The branch, 3.8-trunk has been updated
       via  560496d09896031f81b8adfed503cae1a8e46254 (commit)
      from  920c132891b42ec25efccf5507bc06c6020c8c8a (commit)

Summary of changes:
 lib/RT/Interface/Email.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 560496d09896031f81b8adfed503cae1a8e46254
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Jun 15 14:15:58 2010 -0400

    Only set testfile output once per process

diff --git a/lib/RT/Interface/Email.pm b/lib/RT/Interface/Email.pm
index fc1a721..f618c40 100755
--- a/lib/RT/Interface/Email.pm
+++ b/lib/RT/Interface/Email.pm
@@ -394,8 +394,9 @@ sub SendEmail {
 
     my $mail_command = RT->Config->Get('MailCommand');
 
-    if ($mail_command eq 'testfile') {
+    if ($mail_command eq 'testfile' and not $Mail::Mailer::testfile::config{outfile}) {
         $Mail::Mailer::testfile::config{outfile} = File::Temp->new;
+        $RT::Logger->info("Storing outgoing emails in $Mail::Mailer::testfile::config{outfile}");
     }
 
     # if it is a sub routine, we just return it;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list