Sorry...the attachment was cut off....here is the source.





<!---BEGIN--->

<!--- SETUP
*       Make sure SPOOL and UNDELIVR directories
                has write permissions to the user you are running
                CF-Server as. (Default install sets only to root !).

*       Setup variables for Spool and Undelivr to point to the appropraite
                directories.

*       Setup eMail address for notification.

*       Insert a CRON entry to execute the CFM file.
        EXAMPLE : This will run  cf_remail.cfm every hour.

        00 */1 * * * /usr/coldfusion/webserver/cgi/cfml
/home/httpd/html/cf_remail.cfm > /dev/null
                                        |                                              
         |
                                ColdFusion Install Dir                 Path to 
cf_remail.cfm
--->

<CFSET Spool = "/usr/coldfusion/mail/spool/"> <!--- Note the trialing
"/" --->
<CFSET Undelivr = "/usr/coldfusion/mail/undelivr/"> <!--- Note the trialing
"/" --->
<CFSET AdminMail = "[EMAIL PROTECTED]">

<CFDIRECTORY ACTION="LIST"
             DIRECTORY="#UndeLivr#"
             NAME="ListSpool">

        <CFSET FileCount = 0>
        <CFLOOP QUERY="ListSpool">
                <CFFILE ACTION="MOVE"
          SOURCE="#UndeLivr##ListSpool.Name#"
                DESTINATION="#Spool##ListSpool.Name#">
                <CFSET FileCount = FileCount + 1>
        </CFLOOP>

<!-----------------------------REMOVE COMMENT TO GET eMail about Re-spooled
files -------------------------->
<!---   <CFIF FileCount NEQ 0>
                <CFMAIL TO="#adminmail#"
        FROM="#adminmail#"
        SUBJECT="CF Remailed...">
                  Moved #FileCount# message back to the SPOOL Dir.
                 </CFMAIL>
        </CFIF> --->

<!---END--->


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to