Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!agate!ucbvax!ENG.UMD.EDU!ziegast From: ziegast@ENG.UMD.EDU (Eric Ziegast) Newsgroups: comp.mail.mh Subject: Mail purger Message-ID: <9101171719.AA07907@coke.eng.umd.edu> Date: 17 Jan 91 17:19:47 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 18 I just thought I'd post a neat little alias I have since I have some time to kill and nothing to do. alias purge 'find ~/Mail -name #\* -print | xargs /bin/rm' Some people out there may be wondering why thier mail directories are taking up so much space even though they may be reletively empty. 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. What this alias does is recursively go down through your mail directory and find all files that start with a hash mark. It then feeds this list as arguments to rm. ________________________________________________________________________ Eric W. Ziegast, University of Merryland, Engineering Computing Services ziegast@eng.umd.edu - Eric@[301.405.3689]