source: trunk/third/nmh/man/comp.man @ 12455

Revision 12455, 3.9 KB checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1.\"
2.\" %nmhwarning%
3.\" $Id: comp.man,v 1.1.1.1 1999-02-07 18:14:19 danw Exp $
4.\"
5.\" include the -mh macro file
6.so %etcdir%/tmac.h
7.\"
8.TH COMP %manext1% MH.6.8 [%nmhversion%]
9.SH NAME
10comp \- compose a message
11.SH SYNOPSIS
12.in +.5i
13.ti -.5i
14comp
15\%[+folder] \%[msg]
16.br
17.br
18\%[\-form\ formfile]
19\%[\-use] \%[\-nouse]
20\%[\-file\ file]
21.br
22\%[\-draftfolder\ +folder]
23\%[\-draftmessage\ msg]
24.br
25\%[\-nodraftfolder]
26\%[\-editor\ editor]
27\%[\-noedit]
28.br
29\%[\-whatnowproc\ program] \%[\-nowhatnowproc]
30.br
31\%[\-version]
32\%[\-help]
33.in -.5i
34.SH DESCRIPTION
35\fIComp\fR is used to create a new message to be mailed.  It copies a
36message form to the draft being composed and then invokes an editor on
37the draft (unless `\-noedit' is given, in which case the initial edit
38is suppressed).
39
40The default message form contains the following elements:
41
42.nf
43.in +.5i
44.ne 10
45.eo
46.so %etcdir%/components
47.ec
48.in -.5i
49.fi
50
51If a file named \*(lqcomponents\*(rq exists in the user's nmh directory,
52it will be used instead of this form.  You may specify an alternate
53forms file with the switch `\-form\ formfile'.
54
55You may also start \fIcomp\fR using the contents of an existing message
56as the form.  If you supply either a `+folder' or `msg' argument, that
57message will be used as the message form.  You may not supply both a
58`\-form\ formfile' and a `+folder' or \&`msg' argument.  The line of
59dashes or a blank line must be left between the header and the body of
60the message for the message to be identified properly when it is sent
61(see \fIsend\fR(1)).
62
63The switch `\-use' directs \fIcomp\fR to continue editing an already
64started message.  That is, if a \fIcomp\fR (or \fIdist\fR, \fIrepl\fR,
65or \fIforw\fR\0) is terminated without sending the draft, the draft can
66be edited again via \*(lqcomp\ \-use\*(rq.
67
68The `\-file\ file' switch says to use the named file as the message draft.
69
70If the draft already exists, \fIcomp\fR will ask you as to the disposition
71of the draft.  A reply of \fBquit\fR will abort \fIcomp\fR, leaving
72the draft intact; \fBreplace\fR will replace the existing draft with
73the appropriate form; \fBlist\fR will display the draft; \fBuse\fR will
74use the draft for further composition; and \fBrefile\ +folder\fR will
75file the draft in the given folder, and give you a new draft with the
76appropriate form.  (The `+folder' argument to \fBrefile\fR is required.)
77
78The `\-draftfolder\ +folder' and `\-draftmessage\ msg' switches invoke
79the \fInmh\fR draft folder facility.  This is an advanced (and highly
80useful) feature.  Consult the \fImh-draft\fR(5) man page for more
81information.
82
83The `\-editor\ editor' switch indicates the editor to use for the
84initial edit.  Upon exiting from the editor, \fIcomp\fR will invoke
85the \fIwhatnow\fR program.  See \fIwhatnow\fR\0(1) for a discussion of
86available options.  The invocation of this program can be inhibited
87by using the `\-nowhatnowproc' switch.  (In truth of fact, it is
88the \fIwhatnow\fR program which starts the initial edit.  Hence,
89`\-nowhatnowproc' will prevent any edit from occurring.)
90.Fi
91^%etcdir%/components~^The standard message skeleton
92^or <mh\-dir>/components~^Rather than the standard skeleton
93^$HOME/\&.mh\(ruprofile~^The user profile
94^<mh\-dir>/draft~^The draft file
95.Pr
96^Path:~^To determine the user's nmh directory
97.Ps
98^Draft\-Folder:~^To find the default draft\-folder
99.Ps
100^Editor:~^To override the default editor
101.Ps
102^Msg\-Protect:~^To set mode when creating a new message (draft)
103.Ps
104^fileproc:~^Program to refile the message
105.Ps
106^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
107.Sa
108dist(1), forw(1), repl(1), send(1), whatnow(1), mh-profile(5)
109.De
110`+folder' defaults to the current folder
111.Ds
112`msg' defaults to the current message
113.Ds
114`\-nodraftfolder'
115.Ds
116`\-nouse'
117.Co
118None
119.Bu
120If \fIwhatnowproc\fR is \fIwhatnow\fR, then \fIcomp\fR uses a built\-in
121\fIwhatnow\fR, it does not actually run the \fIwhatnow\fR program.
122Hence, if you define your own \fIwhatnowproc\fR, don't call it
123\fIwhatnow\fR since \fIcomp\fR won't run it.
124.En
Note: See TracBrowser for help on using the repository browser.