[Rt-commit] rt branch, 4.0/document-testfile-delete, created. rt-4.0.13-53-g20044d4

Jim Brandt jbrandt at bestpractical.com
Fri Jun 7 16:52:32 EDT 2013


The branch, 4.0/document-testfile-delete has been created
        at  20044d4f4cb0f9d5270c8816be5077125b4582cf (commit)

- Log -----------------------------------------------------------------
commit 20044d4f4cb0f9d5270c8816be5077125b4582cf
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Jun 7 16:52:09 2013 -0400

    Document behavior of testfile option

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 3b4ed30..809eaf3 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -500,6 +500,15 @@ world, you can set C<$MailCommand> to 'testfile' which writes all mail
 to a temporary file.  RT will log the location of the temporary file
 so you can extract mail from it afterward.
 
+On shutdown, RT will clean up the temporary file created when using
+the 'testfile' option. If testing while the RT server is still running,
+you can find the files in the location noted in the log file. If you run
+a tool like C<rt-crontool> however, or if you look after stopping the server,
+the files will have been deleted when the process completed. If you need to
+keep the files for development or debugging, you can manually set
+C<UNLINK => 0> where the testfile config is processed in
+C<lib/RT/Interface/Emai.pm>.
+
 =cut
 
 Set($MailCommand, "sendmailpipe");

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


More information about the Rt-commit mailing list