Date: Sun, 21 Dec 2003 12:06:50 +0000 From: Ollie Cook <ollie@uk.clara.net> To: freebsd-isp@freebsd.org Subject: Re: Managing Maildirs Message-ID: <20031221120650.GB4588@mutare.noc.clara.net> In-Reply-To: <20031219190055.GD85955@alexis.mi.celestial.com> References: <20031219165302.GA51410@ns2.wananchi.com> <20031219190055.GD85955@alexis.mi.celestial.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@uk.clara.net 020 7903 3065
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031221120650.GB4588>
