http://www.houseoffusion.com/upload/cleanmail.txt
http://www.houseoffusion.com/upload/monitor.txt
The first is the template I use to take a message from the pop stream and
clean it as well as grab important data from it so I can keep message and
reference IDs. The second template is my monitor template that sends me an
email on any error that happens on my site. Makes for really great
debugging. The 'joiner' template that actually retreives the messages and
sends them are not being posted. They're standard anyway (other than the
custom locking).
The custom locking is below:
<CFLOCK scope="SERVER" type="READONLY" timeout="10">
<CFIF Not IsDefined('Server.bLock')>
<CFSET Server.bLock=0>
<CFSET Server.dTime=TimeFormat(now())>
</CFIF>
<CFIF IsDefined('UnLock')>
<CFSET Server.bLock=0>
<CFSET Server.dTime=TimeFormat(now())>
</CFIF>
<CFIF Server.bLock AND DateDiff('n', Server.dTime, Now()) LT 10>
Locked<CFABORT>
<CFELSE>
<CFSET Server.bLock=1>
<CFSET Server.dTime=TimeFormat(now())>
</CFIF>
</CFLOCK>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists