Re: Undeliverable CFMAIL: code to handle
At 03:58 PM 11/9/2004, you wrote: In about two weeks, our mail server will be going down for a couple of days. Consequently, any messages sent by Cold Fusion during that time will not be delivered. Does the CF server maintain these undelivered messages anywhere? As mentioned, in the spool directory. But in addition to your planned outage, if there are hiccups or whatever, you'll end up with some emails there on occasion. I set up a task that runs every 15 minutes or so to copy anything it finds in undelivr to spool. Here's the code. You've probably got some sitting in there right now. ;) --Anders !--- --- --- !--- task-moveStuckEmailToSpool.cfm- --- !--- --- --- CFSET gBaseMailDirectory = #server.coldfusion.rootdir#\Mail\ CFSET stuckEmailDir=#gBaseMailDirectory#undelivr CFSET sendEmailDir=#gBaseMailDirectory#spool CFDIRECTORY action=LIST directory=#stuckEmailDir# name=undeliveredEmail filter=*.cfmail CFOUTPUT Undeliverable directory: #stuckEmailDir# p ol CFLOOP query=undeliveredEmail CFSET fullFileName=#stuckEmailDir#\#undeliveredEmail.Name# li#fullFileName# CFFILE ACTION=MOVE SOURCE=#fullFileName# DESTINATION=#sendEmailDir# /CFLOOP /ol !--- CFDIRECTORY action=LIST directory=#sendEmailDir# name=spooledEmail filter=*.cfmail p Spoolbr #sendEmailDir#p CFLOOP query=spooledEmail #spooledEmail.Name#br /CFLOOP --- CFFILE action=APPEND file=#gBaseDirectory#tasklog.txt output=#DateFormat(Now(),-mm-dd)#-|-#TimeFormat(Now(),HH:mm:ss)#-|-TASK--Email-Spool-#undeliveredEmail.recordCount# addNewLine=Yes p Page complete /CFOUTPUT +===+ |Anders Green Email: [EMAIL PROTECTED] | | Home: 919.303.0218 | |Off Road Rally Racing Team: http://LinaRacing.com/ | +===+ ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183801 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Undeliverable CFMAIL: code to handle
Anders Green wrote: At 03:58 PM 11/9/2004, you wrote: In about two weeks, our mail server will be going down for a couple of days. Consequently, any messages sent by Cold Fusion during that time will not be delivered. Does the CF server maintain these undelivered messages anywhere? As mentioned, in the spool directory. But in addition to your planned outage, if there are hiccups or whatever, you'll end up with some emails there on occasion. I set up a task that runs every 15 minutes or so to copy anything it finds in undelivr to spool. Here's the code. You've probably got some sitting in there right now. ;) I do. I experimented and tried copying one of the files to the Spool directory (after changing the To: line so that the recipient wouldn't get confused). Nothing happened, though, and that file is still sitting in my Spool directory. -- Richard S. Crawford Programmer III: Oracle/Solaris Wrangler UC Davis Extension Distance Education Group (http://unexdlc.ucdavis.edu) 2901 K Street, Suite 200C Sacramento, CA 95816 (916)327-7793 ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183802 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Undeliverable CFMAIL: code to handle
At 04:33 PM 11/9/2004, Crawford wrote: Anders Green wrote: You've probably got some sitting in there right now. ;) I do. I experimented and tried copying one of the files to the Spool directory (after changing the To: line so that the recipient wouldn't get confused). Nothing happened, though, and that file is still sitting in my Spool directory. On the Win2000 machine here, if I copy them over to spool *poof* they get sent out within a couple minutes. I don't alter anything. Perhaps something within the file (crappy email address?) that's killing the transfer before it can even dump it back in undelivr? Anders +===+ |Anders Green Email: [EMAIL PROTECTED] | | Home: 919.303.0218 | |Off Road Rally Racing Team: http://LinaRacing.com/ | +===+ ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183805 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Undeliverable CFMAIL: code to handle
--- Anders Green [EMAIL PROTECTED] wrote: At 04:33 PM 11/9/2004, Crawford wrote: Anders Green wrote: You've probably got some sitting in there right now. ;) I do. I experimented and tried copying one of the files to the Spool directory (after changing the To: line so that the recipient wouldn't get confused). Nothing happened, though, and that file is still sitting in my Spool directory. On the Win2000 machine here, if I copy them over to spool *poof* they get sent out within a couple minutes. I don't alter anything. Perhaps something within the file (crappy email address?) that's killing the transfer before it can even dump it back in undelivr? If memory serves, there was a bug in CFMX6.0 that moving files from Undelivr to Spool wouldn't cause them to be sent until CF was restarted. There was also something about the files being renamed (and Undelivered being misspelled, too) and the Spooler wouldn't pick up those files until they were renamed to the proper format. I can't find the technote, though. Fixed in 6.1. All works just fine for me with the latest updater. (Works in CF5.0 too, FWIW.) __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183807 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Undeliverable CFMAIL: code to handle
At 04:53 PM 11/9/2004, Al Everett wrote: If memory serves, there was a bug in CFMX6.0 FWIW, my (working) setup is 6.1. (and Undeliveredb eing misspelled, too) I always assumed that the current name was just to have a directory name that was 8 characters or less, for compatibility with something ancient. ANders +===+ |Anders Green Email: [EMAIL PROTECTED] | | Home: 919.303.0218 | |Off Road Rally Racing Team: http://LinaRacing.com/ | +===+ ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183808 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Undeliverable CFMAIL: code to handle
I always assumed that the current name was just to have a directory name that was 8 characters or less, for compatibility with something ancient. I was speaking to Richard Crawford's message: I'm actually running CF in a Solaris environment. I executed the following command: $ cd Undelvr $ cp Undelievered_Mailx.cfmail ../Spool But that didn't quite do it. I assume that I need to change the filename when I move it to the Spool directory. That's the misspelling I was talking about. Just one of many reasons to get past 6.0 as fast as possible. __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183809 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Undeliverable CFMAIL: code to handle
Al Everett wrote: I always assumed that the current name was just to have a directory name that was 8 characters or less, for compatibility with something ancient. I was speaking to Richard Crawford's message: I'm actually running CF in a Solaris environment. I executed the following command: $ cd Undelvr $ cp Undelievered_Mailx.cfmail ../Spool But that didn't quite do it. I assume that I need to change the filename when I move it to the Spool directory. That's the misspelling I was talking about. Just one of many reasons to get past 6.0 as fast as possible. I wish. Unfortunately, very poor planning on the part of the original implementer (NOT ME!!) would make upgrading to 6.1 incredibly difficult. -- Richard S. Crawford Programmer III: Oracle/Solaris Wrangler UC Davis Extension Distance Education Group (http://unexdlc.ucdavis.edu) 2901 K Street, Suite 200C Sacramento, CA 95816 (916)327-7793 ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183810 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54