[Dovecot] OT: Cron Output When Deleting Files

Jeff Grossman jeff at stikman.com
Tue Oct 16 16:07:41 EEST 2007


I have a Dovecot setup for a personal e-mail server.  I have a cron job 
setup each evening which runs the following command to delete old 
messages from my Deleted Items folder.

find ./ -type f -ctime +14 | xargs rm

I don't know that much about bash scripting.  I would like the output to 
tell me how many files were deleted.  Can anybody share with me how can 
I get that done, or point in the correct direction?

Thanks,
Jeff


More information about the dovecot mailing list