Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Oct 1998 12:54:34 -0500
From:      John Woodruff <jjw@us.net>
To:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Expiring old mail?
Message-ID:  <3639FD5A.A01387BD@us.net>
References:  <19981026185229.A386@csw.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3639FD5A.A01387BD>