SUMMARY: giant mailboxes

From: sys013@aberdeen.ac.uk
Date: Tue Sep 20 1994 - 18:23:07 CDT


My query about giant mailboxes produced a giant response - lots of
useful suggestions and references. I'm looking at "mailclean" amd purge_mail
(perl) as referred to below.

Lots of people just move entire "old" mailboxes into the user's home directory
where it takes up space and consumes the users quota. There's then a motive to
clean up.

Thanks to all who responded.

From: phil@compnews.co.uk (Phil Male)
From: pat%rwing@ole.cdac.com (Pat Myrto)
From: Dan Schlitt <dan@ees1s0.engr.ccny.cuny.edu>
From: jmclip@world.std.com (Jim and Rita McLean-Lipinski)
From: brb@ike.safb.af.mil (SrA Bruce R Baier)
From: Lenny Turetsky <lturetsk@aida.econ.yale.edu>
From: dotty@hobbes.tgivan.wimsey.bc.ca (Dotty Pon)
From: bern@penthesilea.Uni-Trier.DE (Jochen Bern)
From: mills@CC.UManitoba.CA
From: brw@hertz.njit.edu (Brian White)
From: veronica@solution.maths.unsw.edu.au
From: ballisti@ifh.ee.ethz.ch
From: martin@gea.hsr.it (Martin Achilli)
From: jna@concorde.com (J. Adams)
From: Eckhard.Rueggeberg@ts.go.dlr.de (Eckhard Rueggeberg)
From: Dan Schlitt <dan@ees1s0.engr.ccny.cuny.edu>
From: Harish Malneedi <harishm@pcsdnfs1.eq.gs.com>
From: Mr T Crummey (DIJ) <tom@sees.bangor.ac.uk>
From: mills@CC.UManitoba.CA
From: Aydin Edguer <edguer@MorningStar.Com>
From: Tom Reingold <tommy@big.att.com>
From: stevenho@netcom.com (Steven Ho)
From: jna@concorde.com (J. Adams)
From: admin@concorde.com
From: Paul Quare <pq@computer-science.manchester.ac.uk>
From: root@wisdom(.maf.nasa.gov (Mark Hargrave \(504\) 257-1242)
From: "Harry H. Sun" <Harry.H.Sun@cc.gettysburg.edu>
From: beirne@mcs.com (Michael Beirne)
From: suzanneb@imagin1.com (Suzanne Bryant)
From: Jieming Zhu <jzhu@helios.wichitaks.NCR.COM>
From: stevee@sbei.com (Steve Ehrhardt)
From: swb5600@sudcv91(.ed.ray.com (Steven W. Bates \(508\)-440-3866)
From: Ian Reddy <ian@sfu.ca>
From: Patrick O'Callaghan <poc@usb.ve>
From: Cheryl Williams <clwillia@denmisf01>
From: Mike Raffety <mike_raffety@com.swissbank.us.il>

pat%rwing@ole.cdac.com (Pat Myrto)
There is a thing I got off the net (try ftp.uu.net archives) called 'em'
which expires mail by a number of criterea, including age, username, etc.
Users can use it to remove unwanted mail from their mailboxes, admins can use
it to place an age limit. It would be possible to run from a cron job, for
example.

From: Paul Quare <pq@computer-science.manchester.ac.uk>
Have a look at em from comp.sources.misc v26i074

Dan Schlitt <dan@ees1s0.engr.ccny.cuny.edu>
There was a program called cobwebs that I got from one of the comp.unix
source newsgroups that will give you a report on mailboxes of the sort
that you would find useful.

From: bern@penthesilea.Uni-Trier.DE (Jochen Bern)
(Commenting on use of disk quotas in the /var/spool/mail partition...)
It's useless. SUN sendmail keeps delivering, over Quota or not.

From: mills@CC.UManitoba.CA
From: Patrick O'Callaghan <poc@usb.ve>
"mailclean" ftp.cc.manitoba.ca in /src directory

From: brw@hertz.njit.edu (Brian White)
We use something called "mailclean" here, with some local mods I made and
can't remember the details of :^). It truncates a mailbox at a set limit
and moves the old mail messages inot the perpetrator's :^) home directory
where they count as disk space usage - makes them clean up quickly :^).

From: martin@gea.hsr.it (Martin Achilli)
Referred to a previous Summary, as follows...
Date: Thu, 26 May 94 03:20:04 -0500
Subject: SUMMARY: Mail Quotas

From: Ian Reddy <ian@sfu.ca>
"purge_mail" (perl) ftp.sfu.ca

From: phil@compnews.co.uk (Phil Male)
Software to filter off old email enclosed :-) Has been running here for about
two years now with no problems.
[
Here are some bits of this to give you a flavour. I (g.robertson@abdn.ac.uk) will forward this to anyone who wants the whole file.
]
# Perl mail expire.
# This program removes old messages from system mailboxes. It is site
# specific in that it assumes the format of mailboxes to be standard
# sendmail format mail with a blank line followed by a `From ' line
# starting each and every message. Mailbox locking is via flock.
#
# Options as follows:
# -v verbose output
# -V display version information and quit
# -d debug mode (no change to mailbox)
# -l display messages for crontab output
# -z do not delete zero length mailboxes
# -t do not reset access and modification times on mailbox
# -o always open mailbox, never just test modification date
# -M append a message detailing deleted messages for the user
# -T do not record delivery of mail summary on mailbox date
# -a days messages whose age is greater than days are expired
# -O days messages whose age is greater than days are expired
# -u user only consider messages from user (regexp)
# -S read|old only consider messages who status is `old' or `read'
# -s subject only consider messages with subject (regexp)
#
# Based on ideas in expire_mail by Steve Mitchell (steve_mitchell@csufresno.edu)
#

# usage message

sub usage
{
  print STDERR "usage: expire_mail [-vlV] [-zotTM] [-d] { [-O days] [-u user] [-S read|old] [-s subject] } mailbox...\n";
  exit 0;
}



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:10 CDT