From owner-freebsd-isp@FreeBSD.ORG Sun Dec 21 04:06:52 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6965C16A4CF for ; Sun, 21 Dec 2003 04:06:52 -0800 (PST) Received: from mutare.noc.clara.net (mutare.noc.clara.net [195.8.70.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 572B143D4C for ; Sun, 21 Dec 2003 04:06:51 -0800 (PST) (envelope-from ollie@mutare.noc.clara.net) Received: from ollie by mutare.noc.clara.net with local (Exim 4.24) id 1AY2ME-0001m7-Cs for freebsd-isp@freebsd.org; Sun, 21 Dec 2003 12:06:50 +0000 Date: Sun, 21 Dec 2003 12:06:50 +0000 From: Ollie Cook To: freebsd-isp@freebsd.org Message-ID: <20031221120650.GB4588@mutare.noc.clara.net> References: <20031219165302.GA51410@ns2.wananchi.com> <20031219190055.GD85955@alexis.mi.celestial.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031219190055.GD85955@alexis.mi.celestial.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.9-STABLE i386 X-NCC-RegID: uk.claranet Sender: Ollie Cook X-Envelope-To: freebsd-isp@freebsd.org Subject: Re: Managing Maildirs X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Dec 2003 12:06:52 -0000 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