[comp.mail.mh] Shell script to add or change "Subject:"

jdpeek@RODAN.ACS.SYR.EDU (Jerry Peek) (04/05/89)

[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