Ran into the same problem. I have a modified version we use. It examines the message's "date" header. The rest of the code is the same. If you'd like a copy of the full tag, e-mail me off list. In the meantime, I think all that changed was the CFIF statement around line 227. Substituting this code should work:
<cfset DateHeaderPosition = FindNoCase("#Chr(13)##Chr(10)#Date:", xFile)> <cfset DateStartPosition = DateHeaderPosition + 5> <cfset DateEndPosition = FindNoCase("#Chr(13)##Chr(10)#", xFile, DateStartPosition)> <cfset MessageDate = Mid(xFile, DateStartPosition, DateEndPosition - DateStartPosition)> <cfset MessageDate = ParseDateTime(MessageDate, "POP")> <CFIF DateDiff("y", MessageDate, Now()) GT LocalDateTrigger> Benjamin S. Rogers http://www.c4.net/ v.508.240.0051 f.508.240.0057 -----Original Message----- From: Phil Cruz [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 5:37 PM To: CF-Talk Subject: resendundeliverablemail4.cfm and lastModified I'm using the resendundeliverablemail4.cfm tag to handle undelivered mail. It is moving mail to the spool fine. However, it has the function to check the lastModified date of the email and if it's greater than a certain value it will email the administrator and move the mail to a "failed" folder. This is not working because the lastModified date of the file is being apparently being set to the date/time the file was moved to the undelivered folder (instead of the date/time the mail was sent/created) and so the failure threshold is never reached. I'm usin CF5. Anybody get the failure notification to work with this tag? Can CF be set to not change the lastModified date when moving to the undelivered folder? -Phil FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ______________________________________________________________________ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists