Managing Maildirs
Ollie Cook
ollie at uk.clara.net
Sun Dec 21 04:06:52 PST 2003
On Fri, Dec 19, 2003 at 11:00:55AM -0800, Bill Campbell wrote:
> Number one above will do the trick and is far more efficient than using the
> ``find ...-exec'', although you might want to modify it to only nuke mail
> over a certain age. To nuke all trash over 30 days old:
>
> find /home/*/Maildir/.Trash -type f -mtime +30 | xargs rm
Using '-delete' rather than 'find ... | xargs rm' should be more efficient
still:
find /home/*/Maildir/.Trash -type f -mtime +30 -delete
Ol.
--
Oliver Cook Systems Administrator, Claranet UK
ollie at uk.clara.net 020 7903 3065
More information about the freebsd-isp
mailing list