Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!julius.cs.uiuc.edu!psuvax1!rutgers!mcnc!duke!khera From: khera@thneed.cs.duke.edu (Vick Khera) Newsgroups: comp.mail.mh Subject: Re: Mail purger Message-ID: Date: 18 Jan 91 15:11:19 GMT References: <9101171719.AA07907@coke.eng.umd.edu> <279620F3.21165@ics.uci.edu> Sender: news@duke.cs.duke.edu Organization: Duke University CS Dept., Durham, NC Lines: 15 Nntp-Posting-Host: thneed.cs.duke.edu In-reply-to: jromine@buckaroo.ics.uci.edu's message of 17 Jan 91 22:10:59 GMT here's a nice clean way i remove old file from my mh directory that are a couple of days old. in my .logout file: # if this is the machine that i read mail on (as set by .login) then # go through the mh directory and clean up all old ``deleted'' messages. if ( $?mail ) then find `mhpath +` \( -name ,\* -mtime +2 -o -name \*~ -o -name annotate\* \) \ -print | xargs rm -f & endif -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera, Gradual Student/Systems Guy Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ...!mcnc!duke!khera Durham, NC 27706 (919) 660-6528