[imp] Maintenance Tasks
gimili
gimili17 at gmail.com
Fri Feb 29 18:06:52 UTC 2008
Michael Davis wrote:
> Do you have a script that I can run as a CRON job and clear the SPAM
> folders of my users at night?
>
I found this cron job somewhere:
35 1 1 * 0 /usr/bin/find /home/*/Maildir/.Junk/cur/ -type f -mtime +365
| xargs rm -f 1> /dev/null
This seems to work for my setup. Be careful. Run it without the "rm"
portion first to see if it is finding the right files for you. I am
sure if you google this you can find good info and examples. Modify the
number of days as you see fit.
More information about the imp
mailing list