On 1-Mar-2011, at 12:23, Tim Rice wrote:
On 3/2/2011 1:12 AM, LuKreme wrote:
find /home/*/Maildir/.SPAM/{cur,new} -type f -ctime +7 -delete
find /usr/boxes/rice/computerstuff.net/old/ -type f -mtime +10 -exec rm {} \;
I was going to test this on a new test box but after seeing your post I'm
curious about the -ctime and -delete vs -mtime and -rm? Also, How can I be
sure I'm using Maildir and not Mboxes?
ctime is the create time on the file, mtime is the modified time. Since I am
deleting only spam message, I don't care when the message was last looked at,
if it's int hat folder and was created 7 days ago, it's gone.
-exec rm {} \; is simply a long way of spawning a shell and executing rm for
old, OLD versions of find that don't have -delete.
--
I have as much authority as the Pope, I just don't have as many people
who believe it.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail