On Thu, 19 Sep 2002, Gregory Hicks wrote to [EMAIL PROTECTED] and...:

> > From: Chip Old <[EMAIL PROTECTED]>
> >
> > We run this early every morning as a cron job, on the theory that anyone
> > who hasn't accessed his/her mail in 30 days isn't interested in e-mail:
> >
> >   find /var/mail -atime +30 -print -exec rm {} \;
>
> Sometime ago, someone supplied a pointer to 'preenmail'.  That allows
> you to specify a date 30, 60, 90, whatever days ago and to delete all
> mail older than that date.

That doesn't do the same thing.  It deletes individual messages that are
over some number of days old.  The "find" command above deletes the entire
mailbox if it hasn't been accessed in over 30 days.  We need this because
we have a large number of customers who for various reasons use Hotmail
and other non-local e-mail accounts, and never read their mail on our
system.

-- 
Chip Old (Francis E. Old)             E-Mail:  [EMAIL PROTECTED]
Manager, BCPL Network Services        Phone:   410-887-6180
Manager, BCPL.NET Internet Services   FAX:     410-887-2091
Baltimore County Public Library
320 York Road
Towson, MD 21204  USA

Reply via email to