Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!RODAN.ACS.SYR.EDU!jdpeek From: jdpeek@RODAN.ACS.SYR.EDU (Jerry Peek) Newsgroups: comp.mail.mh Subject: Re: Filing incoming mail and replies Message-ID: <8905181014.AA10426@rodan.acs.syr.edu> Date: 18 May 89 11:14:02 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 23 In article <7230@bsu-cs.bsu.edu> Rahul Dhesi writes: > Here is something I would like to do: File incoming mail, and replies, > close together. Perhaps they could be filed as consecutive messages in > a folder. So if an incoming message was number 10 in a folder, my > reply to it would be number 11. This way I would be able to quickly > find my reply to a message. I have MH set up to always generate an > "Fcc: +inbox" header in all replies, so it's just a question of sorting > the mailbox in a special way. > > Has anybody found a way of doing this? A few years back, I wrote a shell script called "mail.sort" that does this. It's sort of slow. But, the script understands what "Re:" is and ignores it when sorting messages. So, a message with the subject "Power Lunch at ConEd" (sorry :-)) would be filed next to another message "Re: Power Lunch at ConEd". If anybody wants a copy, send me mail. The script needs csh (it uses arrays), and it uses the SysV "cut" command (if you don't have SysV "cut", you could use a PD version or hack it for BSD "colrm"). --Jerry Peek; Syracuse University Academic Computing Services; Syracuse, NY jdpeek@rodan.acs.syr.edu, jdpeek@suvm.bitnet +1 315 443-3995