On 9/22/2004 8:39 AM Matthew Seaman wrote:
On Wed, Sep 22, 2004 at 08:26:07AM -0700, Drew Tomlinson wrote:
I'm trying to write a script to feed the mail in my spam folder to
Spamassassin's sa-learn and then delete the mails older than 1 day in
that spam folder. Here's my current directory listing:
I'm trying to use the find command to do the deleting but am having
trouble with the syntax. For testing, I'm using this command:
blacklamb> find /path/to/Maildir/.Spam/cur \! -newerct 1d -print
blacklamb>
It finds nothing. I read in the manual that time specifications don't
have much meaning without the '-' or '+' operator so I try adding it:
Try:
find /path/to/Maildir/.Spam/cur -type f -mtime +1 -print
Or you might want to use -ctime instead of -mtime -- I think mtime is
probably a more reliable measure than ctime.
Thanks for your reply. This seems to work. However I'm confused.
Should I use -ctime or -mtime?
Drew
--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!
http://www.alchemistswarehouse.com
smime.p7s
Description: S/MIME Cryptographic Signature