Path: utzoo!utgpu!water!watmath!clyde!att!ucbvax!CMX.NPAC.SYR.EDU!jerryp From: jerryp@CMX.NPAC.SYR.EDU (Jerry Peek) Newsgroups: comp.mail.mh Subject: Re: unrmm command Message-ID: <8806261203.AA09007@cmx.npac.syr.EDU> Date: 26 Jun 88 12:03:42 GMT References: <26238@bbn.COM> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 21 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). 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. If anyone wants copies of these, send me mail (personal -- no sense mailing to the whole list, is there?) and I'll put together a shar file. --Jerry Peek, Northeast Parallel Architectures Center, Syracuse, NY jerryp@cmx.npac.syr.edu +1 315 443-1722