Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fmt(1mh)

folder(1mh)

forw(1mh)

inc(1mh)

mail(1mh)

mh(1mh)

mhl(1mh)

next(1mh)

pick(1mh)

prev(1mh)

prompter(1mh)

refile(1mh)

repl(1mh)

rmf(1mh)

rmm(1mh)

scan(1mh)

send(1mh)

show(1mh)

mh(5mh)

mh_profile(5mh)



COMP(1MH)               COMMAND REFERENCE               COMP(1MH)



NAME
     comp - compose a message

SYNOPSIS
     comp [ filename ][ -editor editor ][ -form formfilename ][
     -use ] [ -nouse ]
     [ [ -wait ][ [ -nowait ][ [ -output ][ [ -nooutput ][ [
     -nouse ][ -build ] ]
     [ -help ]

DESCRIPTION
     Comp is used to create a new message to be mailed.  If
     filename is not specified, the file named draft in the
     user's MH directory will be used.  Comp copies a message
     form to the file being composed and then invokes an editor
     on the file.  The default editor is /bin/prompter, which may
     be overridden with the -editor switch or with a profile
     entry Editor: or with the environment variable EDITOR.  (See
     prompter(1mh) for details.) The default message form
     contains the following elements:

          To:
          Cc:
          Subject:
          ----------

     If the file named components exists in the user's MH
     directory, it will be used instead of this form.  If -form
     formfilename is specified, the specified formfilename (from
     the MH directory) will be used as the skeleton.  The line of
     dashes or a blank line must be left between the header and
     the body of the message for the message to be identified
     properly when it is sent (see send(1mh)).  The switch -use
     directs comp to continue editing an already started message.
     That is, if a comp (or repl, or forw) is terminated without
     sending the message, the message can be edited again via
     comp -use .

     If the specified file (or draft) already exists, comp will
     ask if you want to delete it before continuing.  A reply of
     No will abort the comp, yes will replace the existing draft
     with a blank skeleton, list will display the draft, and use
     will use it for further composition.

     Upon exiting from the editor, comp will ask What now? . The
     valid responses are list, to list the draft on the terminal;
     format, to run pretty-up the message (see fmt(1mh)); quit,
     to terminate the session and preserve the draft;
     quit delete, to terminate, then delete the draft; send, to
     send the message; send verbose, to cause the delivery
     process to be monitored; edit< editor >, to invoke <editor>
     for further editing; and edit, to re-edit using the same



Printed 4/6/89                                                  1





COMP(1MH)               COMMAND REFERENCE               COMP(1MH)



     editor that was used on the preceding round unless a profile
     entry <lasteditor>-next: <editor> names an alternative
     editor.

     Your .mh_profile can contain the following entries:

          Path: To determine the user's MH directory
          Editor: To override the use of /bin/prompter
          as the default editor
          <lasteditor>-next: To name an editor to be used after exit
          from <lasteditor>

     Comp has the following defaults:

          filename defaults to draft
          -editor defaults to /bin/prompter
          -nouse
          -wait
          -output

     Comp does not affect either the current folder or the
     current message.

OPTIONS
     -editor editor
             Overrides the default editor with editor.

     -form formfilename
             The specified formfilename (from the MH directory)
             will be used as the skeleton format.

     -help   Displays a synopsis of the comp command.

     -nouse  Causes comp to ignore any previously started
             messages.

     -use    Causes comp to continue editing an already started
             message.

     -wait   Causes comp to wait until the message is sent before
             terminating.

     -nowait Causes comp to terminate immediately after selecting
             send.  This is useful for sending message quickly.

     -output Causes comp to print error messages to the terminal.

     -nooutput
             Causes comp to not print error messages.

     -build  Causes the message to be built but not sent.




Printed 4/6/89                                                  2





COMP(1MH)               COMMAND REFERENCE               COMP(1MH)



FILES
     /usr/lib/mh/components
                      The message skeleton

     <mh-dir>/components
                      Used instead of the standard skeleton

     $HOME/.mh_profile
                      The user profile

     <mh-dir>/draft   The default message file

     /bin/send        To send the composed message

SEE ALSO
     fmt(1mh), folder(1mh), forw(1mh), inc(1mh), mail(1mh),
     mh(1mh), mhl(1mh), next(1mh), pick(1mh), prev(1mh),
     prompter(1mh), refile(1mh), repl(1mh), rmf(1mh), rmm(1mh),
     scan(1mh), send(1mh), show(1mh), mh(5mh), and
     mh_profile(5mh).



































Printed 4/6/89                                                  3



%%index%%
na:288,76;
sy:364,1041;
de:1405,3724;5489,1268;
op:6757,1899;
fi:9016,505;
se:9521,653;
%%index%%000000000121

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026