From owner-freebsd-isp@FreeBSD.ORG Sun Dec 21 12:58:24 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 4B42C16A4CE for ; Sun, 21 Dec 2003 12:58:24 -0800 (PST) Received: from mail.mi.celestial.com (dagney.celestial.com [192.136.111.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79B7B43D53 for ; Sun, 21 Dec 2003 12:58:22 -0800 (PST) (envelope-from bill@celestial.com) Received: by mail.mi.celestial.com (Postfix, from userid 203) id 3641111E8A7; Sun, 21 Dec 2003 12:58:22 -0800 (PST) Date: Sun, 21 Dec 2003 12:58:22 -0800 From: Bill Campbell To: freebsd-isp@freebsd.org Message-ID: <20031221205822.GB2951@alexis.mi.celestial.com> Mail-Followup-To: freebsd-isp@freebsd.org References: <20031219165302.GA51410@ns2.wananchi.com> <20031219190055.GD85955@alexis.mi.celestial.com> <20031221120650.GB4588@mutare.noc.clara.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031221120650.GB4588@mutare.noc.clara.net> User-Agent: Mutt/1.4.1i Subject: Re: Managing Maildirs X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@celestial.com List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Dec 2003 20:58:24 -0000 On Sun, Dec 21, 2003, Ollie Cook wrote: >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 Hmmm. That would be nice, but it seems to be BSD-centric. I don't see the ``-delete'' option in any version of find I have around, certainly not in the find from gnu: gfind . -name xxxxyyyyzzz -delete gfind: invalid predicate `-delete' I find using options like this leads to portability problems. Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``Are we at last brought to such a humiliating and debasing degradation, that we cannot be trusted with arms for our own defense? Where is the difference between having our arms in our own possession and under our own direction, and having them under the management of Congress? If our defense be the real object of having those arms, in whose hands can they be trusted with more propriety, or equal safety to us, as in our own hands?'' -- Patrick Henry June 9, 1788, in the Virginia Convention on the ratification of the Constitution.