modhdr.rexx
-----------

WHAT IT DOES

     This AREXX script provides an easy way to set message headers in GRn 
without having to move up to the headers section in your editor and edit 
manually.  (Seemed to me a tad silly for a GUI newsreader to have such a
horrible-looking way to edit headers - if I wanted to edit manually I'd
use rn :) ) It also lets you automatically change a "From:" header that
is in error (such as what may occur if you are using TIA or dynamic SLIP).

WHAT YOU NEED

     * ARexx  (duh :) )
     * GRn installed  (double duh :) )
     * RexxReqTools installed (look on Aminet if you don't have it)

INSTALLATION

     Installation of this script is fairly straightforward.  First, copy the
script where you want it (I use inet:c).  Then, set environment variables 
as follows:

     DRMEDITOR = the full pathname of your preferred editor.

                 Note: This must be an editor that doesn't return
                       to the shell until after you're done with
                       it ...

     DRMTIA = YES if you'd like modhdr to substitute into the "From:" 
              header.

     DRMREAL = your real email address

     NEWSEDITOR = sys:rexxc/rx pathname of modhdr.rexx
     
     As an example, in my user-startup I have:

     setenv DRMEDITOR "sys:utilities/ann"  
     setenv DRMTIA "YES"
     setenv DRMREAL "charlet@hubcap.clemson.edu (Charles E Taylor IV)"
     setenv NEWSEDITOR "sys:rexxc/rx inet:c/modhdr.rexx"

USAGE

     This much is obvious the next time you use GRn. :)

     The script has been modified a bit to save some clicking - it no 
     longer asks up front to enter subject/newsgroups/to/etc if it has
     defaults for these variables.  To change them, just click on the
     appropriate gadget in the "Edit headers?" window that pops up
     after you've edited your message.
     
AUTHOR INFO

     Email me at charlet@hubcap.clemson.edu with any questions, comments, or
     bug reports.

HISTORY

1-18-95 ... 1st release
1-31-95 ... 1.01ß ... added some features
3-8-95  ... 1.02  ... removed the extra carriage returns on every message
