Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!INTREPID.ECN.PURDUE.EDU!davy
From: davy@INTREPID.ECN.PURDUE.EDU (Dave Curry)
Newsgroups: comp.mail.mh
Subject: Re: unrmm command
Message-ID: <8806262201.AA28641@intrepid.ecn.purdue.edu>
Date: 26 Jun 88 22:01:03 GMT
References: <8806261203.AA09007@cmx.npac.syr.EDU>
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 39


     From:  Jerry Peek 
     Date:  Sun, 26 Jun 88 08:03:42 EDT
     Subject:  Re: unrmm command 

     I tend to "inc" a lot of single messages, handle them, them run "rmm"
     right away.  So, lots of my messages overwrite each other (for example,
     I "inc" message 123 -- then remove it, which makes it ",123" -- then soon
     "inc" another message 123 -- then remove it, which blows away the previous
     removed message ",123" -- and so on).

Me, too.

     To fix this, I changed my "rmmproc:" to use a program I wrote called "temp".
     Before it adds a comma to a filename, "temp" checks to see if the destination
     file already exists.  If so, it adds enough commas to make a unique filename.
     So, I end up with removed messages named ",123", ",,123", ",,,123", etc.
     I also wrote an "unrmm" that checks to see if there's more than one removed
     message with the same message number; if so, it shows you each message with
     that number and asks if you want to restore that one; otherwise, it just
     restores the single message.

All these "unrmm" scripts seem like a lot of overkill to me.  I just
followed the MH doc's suggestion and did an

	alias rmm	refile +deadbox

And then I have a shell script which I start up with "cron" each night (you
could use "at" if you don't have a Sun whose crontab is essentially only
for you).  The shell script uses "pick" and zaps all messages in deadbox
that are over three days old.  (The script also cleans up my folder of
outgoing mail, and some digest folders, but that's not important right
now.)

There's no need for an "unrmm" script; I just have everything in a folder
and can use "pick", "scan", and all that good stuff to manipulate my deleted
messages.

--Dave Curry