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

Revision 12455, 7.6 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: forw.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 FORW %manext1% MH.6.8 [%nmhversion%]
9.SH NAME
10forw \- forward messages
11.SH SYNOPSIS
12.in +.5i
13.ti -.5i
14forw
15\%[+folder] \%[msgs]
16.br
17\%[\-annotate] \%[\-noannotate]
18\%[\-form\ formfile]
19.br
20\%[\-format] \%[\-noformat]
21\%[\-filter\ filterfile]
22.br
23\%[\-inplace] \%[\-noinplace]
24\%[\-mime] \%[\-nomime]
25.br
26\%[\-draftfolder\ +folder] \%[\-draftmessage\ msg]
27.br
28\%[\-nodraftfolder]
29\%[\-editor\ editor] \%[\-noedit]
30.br
31\%[\-whatnowproc\ program] \%[\-nowhatnowproc]
32.br
33\%[\-dashstuffing] \%[\-nodashstuffing]
34\%[\-version]
35\%[\-help]
36
37.ti .5i
38forw
39\%[+folder] \%[msgs]
40\%[\-digest\ list] \%[\-issue\ number]
41.br
42\%[\-volume\ number]
43\%[other\ switches\ for\ \fIforw\fR]
44\%[\-help]
45.in -.5i
46.SH DESCRIPTION
47\fIForw\fR may be used to prepare a message containing other messages.
48
49It constructs the new message from a forms (components) file, with a
50body composed of the message(s) to be forwarded.  An editor is invoked
51as in \fIcomp\fR, and after editing is complete, the user is prompted
52before the message is sent.
53
54The default message form contains the following elements:
55
56.nf
57.in +.5i
58.ne 10
59.eo
60.so %etcdir%/forwcomps
61.ec
62.in -.5i
63.fi
64
65If a file named \*(lqforwcomps\*(rq exists in the user's nmh directory,
66it will be used instead of this default form.  You may also specify an
67alternate forms file with the switch `\-form\ formfile'.
68
69When If the draft already exists, \fIforw\fR will ask you as to the disposition
70of the draft.  A reply of \fBquit\fR will abort \fIforw\fR, leaving the
71draft intact; \fBreplace\fR will replace the existing draft with a blank
72skeleton; and \fBlist\fR will display the draft.
73
74If the `\-annotate' switch is given, each message being forwarded will
75be annotated with the lines
76
77     Forwarded:\ date
78     Forwarded:\ addrs
79
80where each address list contains as many lines as required.  This
81annotation will be done only if the message is sent directly from
82\fIforw\fR.  If the message is not sent immediately from \fIforw\fR,
83\*(lqcomp\ \-use\*(rq may be used to re\-edit and send the constructed
84message, but the annotations won't take place.  Normally annotations
85are done inplace in order to preserve any links to the message.  You may
86change this by using the '\-noinplace' switch.
87
88See \fIcomp\fR\0(1) for a description of the `\-editor' and `\-noedit'
89switches.
90
91Although \fIforw\fR uses a forms (components) file to direct it how to
92construct the beginning of the draft, it uses a message filter file to
93direct it as to how each forwarded message should be formatted in the
94body of the draft.  The filter file for \fIforw\fR should be a standard
95form file for \fImhl\fR, as \fIforw\fR will invoke \fImhl\fR to filter
96(re\-format) the forwarded messages prior to being output to the body
97of the draft.
98
99The switches `\-noformat', `\-format', and `\-filter\ filterfile' specify
100which message filter file to use.
101
102If `\-noformat' is specified (this is the default), then each forwarded
103message is output into the draft exactly as it appears with no \fImhl\fR
104filtering.
105
106If `\-format' is specified, then a default message filter file is used.
107This default message filter should be adequate for most users.
108This default filter \*(lqmhl.forward\*(rq is:
109
110.nf
111.in +.5i
112.ne 10
113.eo
114.so %etcdir%/mhl.forward
115.ec
116.in -.5i
117.fi
118
119If a file named \*(lqmhl.forward\*(rq exists in the user's nmh
120directory, it will be used instead of this form.  You may specify an
121alternate message filter file with the switch `\-filter\ filterfile'.
122
123Each forwarded message is separated with an encapsulation delimiter.
124By default, any dashes in the first column of the forwarded messages
125will be prepended with `\-\ ' so that when received, the message is
126suitable for bursting by \fIburst\fR\0(1).  This follows the Internet
127RFC\-934 guidelines.  You may use the flag `\-nodashstuffing' in order
128to suppress this form of quoting to the forwarded messages.
129
130For users of \fIprompter\fR\0(1), by specifying prompter's `-prepend'
131switch in the \&.mh\(ruprofile file, any commentary text is entered
132before the forwarded messages.  (A major win!)
133
134To use the MIME rules for encapsulation, specify the `\-mime' switch.
135This directs \fIforw\fR to generate an \fImhbuild\fR composition file.
136Note that nmh will not invoke \fImhbuild\fR automatically, unless you
137add this line to your \&.mh\(ruprofile file:
138.sp
139.in +.5i
140automimeproc: 1
141.in -.5i
142.sp
143Otherwise,
144you must specifically give the command
145.sp
146.in +.5i
147What now? mime
148.in -.5i
149.sp
150prior to sending the draft.
151
152The `\-draftfolder\ +folder' and `\-draftmessage\ msg' switches invoke
153the \fInmh\fR draft folder facility.  This is an advanced (and highly
154useful) feature.  Consult the \fImh-draft\fR(5) man page for more
155information.
156
157Upon exiting from the editor, \fIforw\fR will invoke the \fIwhatnow\fR
158program.  See \fIwhatnow\fR\0(1) for a discussion of available
159options.  The invocation of this program can be inhibited by using the
160`\-nowhatnowproc' switch.  (In truth of fact, it is the \fIwhatnow\fR
161program which starts the initial edit.  Hence, `\-nowhatnowproc' will
162prevent any edit from occurring.)
163
164The `\-digest\ list', `\-issue\ number', and `\-volume\ number' switches
165implement a digest facility for \fInmh\fR.  Specifying these switches
166enables and/or overloads the following escapes:
167
168.sp 1
169.nf
170.ta \w'Component  'u +\w'Escape  'u +\w'Returns  'u
171\fIType\fR      \fIEscape\fR    \fIReturns\fR   \fIDescription\fR
172\fIcomponent\fR \fIdigest\fR    string  Argument to `\-digest'
173\fIfunction\fR  \fIcur\fR       integer Argument to `\-volume'
174\fIfunction\fR  \fImsg\fR       integer Argument to `\-issue'
175.re
176.fi
177
178Consult the \fBAdvanced Features\fR section of
179the \fInmh\fR User's Manual for more information on making digests.
180.Fi
181^%etcdir%/forwcomps~^The standard message skeleton
182^or <mh\-dir>/forwcomps~^Rather than the standard skeleton
183^%etcdir%/digestcomps~^The message skeleton if `\-digest' is given
184^or <mh\-dir>/digestcomps~^Rather than the standard skeleton
185^%etcdir%/mhl.forward~^The standard message filter
186^or <mh\-dir>/mhl.forward~^Rather than the standard filter
187^$HOME/\&.mh\(ruprofile~^The user profile
188^<mh\-dir>/draft~^The draft file
189.Pr
190^Path:~^To determine the user's nmh directory
191.Ps
192^Current\-Folder:~^To find the default current folder
193.Ps
194^Draft\-Folder:~^To find the default draft\-folder
195.Ps
196^Editor:~^To override the default editor
197.Ps
198^Msg\-Protect:~^To set mode when creating a new message (draft)
199.Ps
200^fileproc:~^Program to refile the message
201.Ps
202^mhlproc:~^Program to filter messages being forwarded
203.Ps
204^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
205.Sa
206\fIProposed Standard for Message Encapsulation\fR (RFC\-934),
207.br
208mhbuild(1), comp(1), repl(1), send(1), whatnow(1), mh\-format(5)
209.De
210`+folder' defaults to the current folder
211`msgs' defaults to cur
212.Ds
213`\-noannotate'
214.Ds
215`\-nodraftfolder'
216.Ds
217`\-noformat'
218.Ds
219`\-inplace'
220.Ds
221`\-dashstuffing'
222.Ds
223`\-nomime'
224.Co
225If a folder is given, it will become the current folder.
226The first message forwarded will become the current message.
227.Bu
228
229If \fIwhatnowproc\fR is \fIwhatnow\fR, then \fIforw\fR uses a built\-in
230\fIwhatnow\fR, it does not actually run the \fIwhatnow\fR program.
231Hence, if you define your own \fIwhatnowproc\fR, don't call it
232\fIwhatnow\fR since \fIforw\fR won't run it.
233
234When \fIforw\fR is told to annotate the messages it forwards, it
235doesn't actually annotate them until the draft is successfully sent.
236If from the \fIwhatnowproc\fR, you \fIpush\fR instead of \fIsend\fR,
237it's possible to confuse \fIforw\fR by re\-ordering the file (e.g.,
238by using `folder\0\-pack') before the message is successfully sent.
239\fIDist\fR and \fIrepl\fR don't have this problem.
240.En
Note: See TracBrowser for help on using the repository browser.