Re: Auto Delete EmailCompleted Files
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45652
interpreted = N
texte = No, but something like this should be close(untested so you might need to debug):[text]fivedaysago=[math]{[date]}-5[math][/text][ListFiles path=../cgi-bin/WebCatalogEngine/EmailCompleted/][hideif [math]{[ModDate]}[/math]>[fivedaysago]][DELETEFILE file=../cgi-bin/WebCatalogEngine/EmailCompleted/[filename]][/hideif][/listfiles]Then set a trigger to hit this page every so often.DonovanClint Davis wrote:> Has anyone written a script (WebDNA or Applescript) that will scan the> EmailCompleted folder and remove any files over 5, 6, 7, etc. days old?>-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
No, but something like this should be close(untested so you might need to debug):[text]fivedaysago=[math]{[date]}-5[math][/text][ListFiles path=../cgi-bin/WebCatalogEngine/EmailCompleted/][hideif [math]{[ModDate]}[/math]>[fivedaysago]][DELETEFILE file=../cgi-bin/WebCatalogEngine/EmailCompleted/[filename]][/hideif][/listfiles]Then set a trigger to hit this page every so often.DonovanClint Davis wrote:> Has anyone written a script (WebDNA or Applescript) that will scan the> EmailCompleted folder and remove any files over 5, 6, 7, etc. days old?>-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Donovan
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
More on the email templates (1997)
Image Sizes (2003)
Remote Administration (1998)
[WebDNA] Cannot get WebDNA and MySQL working. (2015)
Sendmail (1998)
FWD: Autoproxy Bug with WebCatalog and FireSite (1997)
webcat sendmail error - unix sendmail failed to deliver thisemail (2000)
Re[2]: 2nd WebCatalog2 Feature Request (1996)
Date Sorting (1997)
Dummy Form Variables Needed (2000)
Multi shift click (1999)
I give up!! (1997)
Multiple Merchant Accounts? (1997)
RE: Upload (1998)
WebCat2 beta 11 - new prefs ... (1997)
JavaScript Image Problem (1998)
"The event log file is corrupt" (2003)
A Trigger Question (2000)
default value from Lookup (was Grant, please help me) (1997)
Nav. 4 probs with cart (1997)