From owner-freebsd-isp Fri Oct 30 10:05:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA07405 for freebsd-isp-outgoing; Fri, 30 Oct 1998 10:05:19 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from www.us.net (www.us.net [198.240.72.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA07399 for ; Fri, 30 Oct 1998 10:05:15 -0800 (PST) (envelope-from jjw@us.net) Received: from us.net (home.us.net [198.240.72.28]) by www.us.net (8.8.8/8.8.6) with ESMTP id NAA00276; Fri, 30 Oct 1998 13:04:56 -0500 (EST) X-Provider: US Net - Advanced Internet Services - 301-361-USNET - info@us.net Where Business Connects! (tm) -- http://www.us.net/ Message-ID: <3639FD5A.A01387BD@us.net> Date: Fri, 30 Oct 1998 12:54:34 -0500 From: John Woodruff Reply-To: jjw@us.net X-Mailer: Mozilla 4.04 [en] (Win95; U) MIME-Version: 1.0 To: freebsd-isp@FreeBSD.ORG Subject: Re: Expiring old mail? References: <19981026185229.A386@csw.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Scott Lambert wrote: > Is "expire" like tool for the mail spool files? # pkg_add ftp://ftp.us.net/pub/unix/freebsd/purgmbox-1.0.tgz # purgmbox ? Purpose: Purge old mail items from Unix mailbox files Usage: purgmbox [-opts] mbox ... -fname - Purge messages From name -lfile - Log messages to 'file' -onn - Purge messages older than nn days -snn - Purge until mailbox smaller than nn kbytes -v ... - Verbose; Print summary. Repeat for more detail mbox - One or more mailbox files # find /var/mail -type f | xargs purgmbox -o60 -s500 Source in same place as purgmbox-1.0src.tgz, not a pkg_add. Simple. C. Edits in one pass. Looks at postmark only, so can't tell if a message was read or not. YMMV. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message