Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!RODAN.ACS.SYR.EDU!jdpeek From: jdpeek@RODAN.ACS.SYR.EDU (Jerry Peek) Newsgroups: comp.mail.mh Subject: Shell script to add or change "Subject:" Message-ID: <8904051322.AA04857@rodan.acs.syr.edu> Date: 5 Apr 89 14:22:34 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 19 [I haven't seen anything on this list for a few weeks, so I thought I oughta...] I get a lot of mail from a computer where the mail system doesn't make it easy to add a Subject to the message. That makes scan-ing a lot harder. So, I wrote a Bourne shell script called "fixsubj" that lets you add (or change) the Subject line. The syntax is like this: fixsubj -s 'new subject line' [+folder] [msgs] It reads each of the msgs (default is cur). - If there's no subject, it adds the new one - If there is a subject, it asks if you want to skip the message, use the default (from -s), or invoke an editor like vi. It works under 6.5 and should work under other MHs, too. It uses a SysV Bourne shell; it should work under ksh, but BSD/V7 shells will need a couple of little hacks. If you want a copy, send me mail. --Jerry Peek; Syracuse University Academic Computing Services; Syracuse, NY jdpeek@rodan.acs.syr.edu +1 315 443-3995