Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!jarthur!ucivax!jromine From: jromine@buckaroo.ics.uci.edu (John Romine) Newsgroups: comp.mail.mh Subject: Re: Mail purger Message-ID: <279620F3.21165@ics.uci.edu> Date: 17 Jan 91 22:10:59 GMT References: <9101171719.AA07907@coke.eng.umd.edu> Reply-To: jromine@ics.uci.edu (John Romine) Organization: UC Irvine Department of ICS Lines: 19 Nntp-Posting-Host: buckaroo.ics.uci.edu ziegast@ENG.UMD.EDU (Eric Ziegast) writes: >I just thought I'd post a neat little alias... > > alias purge 'find ~/Mail -name #\* -print | xargs /bin/rm' > >When rmm is used, MH adds a hash mark (#) to the beginning of the >filename of the message. The message is not deleted. This is good >because it serves as a backup feature, but it is also bad if you're >short of disk space and want to free some by removing Mail messages. On our system, these files get deleted after a few days via a cron entry. We run finds over all the partitions where users files are stored, and remove old "backup" and core files. If your system doesn't do this, let me second Eric's suggestion and recommend that you also put a find command like that above, in your .logout file. -- John Romine