Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / doc / RCS / forw.rf,v
1 head    1.11;
2 access;
3 symbols;
4 locks; strict;
5
6
7 1.11
8 date    92.10.16.21.36.02;      author jromine; state Exp;
9 branches;
10 next    1.10;
11
12 1.10
13 date    90.12.18.14.40.06;      author mh;      state Exp;
14 branches;
15 next    1.9;
16
17 1.9
18 date    90.04.05.15.08.44;      author sources; state Exp;
19 branches;
20 next    1.8;
21
22 1.8
23 date    90.03.23.15.03.30;      author sources; state Exp;
24 branches;
25 next    1.7;
26
27 1.7
28 date    90.03.23.14.57.30;      author sources; state Exp;
29 branches;
30 next    1.6;
31
32 1.6
33 date    90.03.22.11.31.07;      author sources; state Exp;
34 branches;
35 next    1.5;
36
37 1.5
38 date    90.03.20.19.41.45;      author sources; state Exp;
39 branches;
40 next    1.4;
41
42 1.4
43 date    90.03.20.17.36.01;      author sources; state Exp;
44 branches;
45 next    1.3;
46
47 1.3
48 date    90.03.16.14.28.23;      author sources; state Exp;
49 branches;
50 next    1.2;
51
52 1.2
53 date    90.02.07.13.15.02;      author sources; state Exp;
54 branches;
55 next    1.1;
56
57 1.1
58 date    90.02.07.13.05.39;      author sources; state Exp;
59 branches;
60 next    ;
61
62
63 desc
64 @@
65
66
67 1.11
68 log
69 @MIME changes
70 @
71 text
72 @.\"    @@(MHWARNING)
73 .\" @@(#)$Id: forw.rf,v 1.10 1990/12/18 14:40:06 mh Exp jromine $
74 .SC FORW 1
75 .NA
76 forw \- forward messages
77 .SY
78 forw
79 \%[+folder] \%[msgs]
80 \%[\-annotate] \%[\-noannotate]
81 \%[\-draftfolder\ +folder] \%[\-draftmessage\ msg] \%[\-nodraftfolder]
82 \%[\-editor\ editor] \%[\-noedit]
83 \%[\-filter\ filterfile]
84 \%[\-form\ formfile]
85 \%[\-format] \%[\-noformat]
86 \%[\-inplace] \%[\-noinplace]
87 @@BEGIN: MIME
88 \%[\-mime] \%[\-nomime]
89 @@END: MIME
90 \%[\-whatnowproc\ program] \%[\-nowhatnowproc]
91 \%[\-help]
92
93 .ti .5i
94 forw
95 \%[+folder] \%[msgs]
96 \%[\-digest\ list] \%[\-issue\ number] \%[\-volume\ number]
97 \%[other\ switches\ for\ \fIforw\fR]
98 \%[\-help]
99 .DE
100 \fIForw\fR may be used to prepare a message containing other
101 messages.
102 It constructs the new message from the components file
103 or `\-form\ formfile' (see \fIcomp\fR\0), with a body composed of the
104 message(s) to be forwarded.
105 An editor is invoked as in \fIcomp\fR,
106 and after editing is complete, the user is prompted before the message
107 is sent.
108
109 The default message form contains the following elements:
110
111 .nf
112 .in +.5i
113 .ne 10
114 .eo
115 .so @@(MHETCPATH)/forwcomps
116 .ec
117 .in -.5i
118 .fi
119
120 If the file named \*(lqforwcomps\*(rq exists in the user's MH directory,
121 it will be used instead of this form.
122 In either case, the file specified by `\-form\ formfile' will be
123 used if given.
124
125 If the draft already exists,
126 \fIforw\fR will ask you as to the disposition of the draft.
127 A reply of \fBquit\fR will abort \fIforw\fR, leaving the draft intact;
128 \fBreplace\fR will replace the existing draft with a blank skeleton;
129 and \fBlist\fR will display the draft.
130
131 If the `\-annotate' switch is given, each message being
132 forwarded will be annotated with the lines
133
134      Forwarded:\ date
135      Forwarded:\ addrs
136
137 where each address list contains as many lines as required.
138 This annotation
139 will be done only if the message is sent directly from \fIforw\fR.
140 If the message is not sent immediately from \fIforw\fR,
141 \*(lqcomp\ \-use\*(rq may be used to re\-edit and send the constructed message,
142 but
143 the annotations won't take place.
144 The '\-inplace' switch causes annotation to
145 be done in place in order to preserve links to the annotated message.
146
147 See \fIcomp\fR\0(1) for a description of the `\-editor' and `\-noedit'
148 switches.
149
150 Although \fIforw\fR uses the `\-form\ formfile' switch to direct it how to
151 construct the beginning of the draft, the `\-filter\ filterfile',
152 `\-format', and `\-noformat'
153 switches direct \fIforw\fR as to how each forwarded message should be
154 formatted in the body of the draft.
155 If `\-noformat' is specified,
156 then each forwarded message is output exactly as it appears.
157 If `\-format' or `\-filter\ filterfile' is specified,
158 then each forwarded message is filtered (re\-formatted) prior to being
159 output to the body of the draft.
160 The filter file for \fIforw\fR should be a standard form file for
161 \fImhl\fR,
162 as \fIforw\fR will invoke \fImhl\fR to format the forwarded messages.
163 The default message filter (what you get with `\-format') is:
164
165 .nf
166 .in +.5i
167 .ne 10
168 .eo
169 .so @@(MHETCPATH)/mhl.forward
170 .ec
171 .in -.5i
172 .fi
173
174 If the file named \*(lqmhl.forward\*(rq exists in the user's MH directory,
175 it will be used instead of this form.
176 In either case, the file specified by `\-filter\ filterfile' will be
177 used if given.
178 To summarize:
179 `\-noformat' will reproduce each forwarded message exactly,
180 `\-format' will use \fImhl\fR and a default filterfile, \*(lqmhl.forward\*(rq,
181 to format each forwarded message, and
182 `\-filter\ filterfile' will use the named filterfile to format each
183 forwarded message with \fImhl\fR.
184
185 Each forwarded message is separated with an encapsulation delimiter 
186 and
187 dashes in the first column of the forwarded messages will be prepended
188 with `\-\ ' so that
189 when received, the message is suitable for bursting by \fIburst\fR\0(1).
190 This follows the Internet RFC\-934 guidelines.
191
192 For users of \fIprompter\fR\0(1), by specifying prompter's `-prepend'
193 switch in the \&.mh\(ruprofile file, any commentary text is entered before
194 the forwarded messages.  (A major win!)
195
196 @@BEGIN: MIME
197 To use the MIME rules for encapsulation,
198 specify the `\-mime' switch.
199 This directs \fIforw\fR to generate an \fImhn\fR composition file.
200 Note that MH will not invoke \fImhn\fR automatically,
201 unless you  add this line to your \&.mh\(ruprofile file:
202 .sp
203 .in +.5i
204 automhnproc: mhn
205 .in -.5i
206 .sp
207 Otherwise,
208 you must specifically give the command
209 .sp
210 .in +.5i
211 What now? edit mhn
212 .in -.5i
213 .sp
214 prior to sending the draft.
215
216 To automate this somewhat,
217 create a link to \fIprompter\fR called \fIrapid\fR
218 and put these lines in your \&.mh\(ruprofile file:
219 .sp
220 .in +.5i
221 .nf
222 forw: -editor rapid -mime
223 rapid: -rapid
224 rapid-next: mhn
225 .fi
226 .in -.5i
227 .sp
228 Then,
229 you can simply do:
230 .sp
231 .in +.5i
232 .nf
233 \fIforw msgs\fR
234 To: \fImailbox\fR
235 cc:
236 Subject: \fIwhatever\fR
237
238 --------Enter initial text
239
240 \fIblah, blah, blah.\fR
241 <CTRL-D>
242 --------
243
244 What now? \fIedit\fR
245 What now? \fIsend\fR
246 ...
247 .fi
248 .in -.5i
249 .sp
250 The \fIedit\fR command invokes \fImhn\fR automatically.
251
252 @@END: MIME
253 The `\-draftfolder\ +folder' and `\-draftmessage\ msg' switches invoke the
254 \fIMH\fR draft folder facility.
255 This is an advanced (and highly useful) feature.
256 Consult the \fBAdvanced Features\fR section of the \fIMH\fR manual for more
257 information.
258
259 Upon exiting from the editor,
260 \fIforw\fR will invoke the \fIwhatnow\fR program.
261 See \fIwhatnow\fR\0(1) for a discussion of available options.
262 The invocation of this program can be inhibited by using the `\-nowhatnowproc'
263 switch.
264 (In truth of fact,
265 it is the \fIwhatnow\fR program which starts the initial edit.
266 Hence, `\-nowhatnowproc' will prevent any edit from occurring.)
267
268 The `\-digest\ list', `\-issue\ number', and `\-volume\ number' switches
269 implement a digest facility for \fIMH\fR.  Specifying these switches
270 enables and/or overloads the following escapes:
271 .sp 1
272 .nf
273 .ta \w'Component  'u +\w'Escape  'u +\w'Returns  'u
274 \fIType\fR      \fIEscape\fR    \fIReturns\fR   \fIDescription\fR
275 \fIcomponent\fR \fIdigest\fR    string  Argument to `\-digest'
276 \fIfunction\fR  \fIcur\fR       integer Argument to `\-volume'
277 \fIfunction\fR  \fImsg\fR       integer Argument to `\-issue'
278 .re
279 .fi
280
281 Consult the \fBAdvanced Features\fR section of 
282 the \fIMH\fR User's Manual for more information on making digests.
283 .Fi
284 ^@@(MHETCPATH)/forwcomps~^The message skeleton
285 ^or <mh\-dir>/forwcomps~^Rather than the standard skeleton
286 ^@@(MHETCPATH)/digestcomps~^The message skeleton if `\-digest' is given
287 ^or <mh\-dir>/digestcomps~^Rather than the standard skeleton
288 ^@@(MHETCPATH)/mhl.forward~^The message filter
289 ^or <mh\-dir>/mhl.forward~^Rather than the standard filter
290 ^$HOME/\&.mh\(ruprofile~^The user profile
291 ^<mh\-dir>/draft~^The draft file
292 .Pr
293 ^Path:~^To determine the user's MH directory
294 .Ps
295 ^Current\-Folder:~^To find the default current folder
296 .Ps
297 ^Draft\-Folder:~^To find the default draft\-folder
298 .Ps
299 ^Editor:~^To override the default editor
300 .Ps
301 ^Msg\-Protect:~^To set mode when creating a new message (draft)
302 .Ps
303 ^fileproc:~^Program to refile the message
304 .Ps
305 ^mhlproc:~^Program to filter messages being forwarded
306 .Ps
307 ^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
308 .Sa
309 \fIProposed Standard for Message Encapsulation\fR (aka RFC\-934),
310 .br
311 comp(1), dist(1), repl(1), send(1), whatnow(1), mh\-format(5)
312 .De
313 `+folder' defaults to the current folder
314 `msgs' defaults to cur
315 .Ds
316 `\-noannotate'
317 .Ds
318 `\-nodraftfolder'
319 .Ds
320 `\-noformat'
321 .Ds
322 `\-noinplace'
323 @@BEGIN: MIME
324 .Ds
325 `\-nomime'
326 @@END: MIME
327 .Co
328 If a folder is given, it will become the current folder.
329 The first message forwarded will become the current message.
330 .Bu
331 If \fIwhatnowproc\fR is \fIwhatnow\fR,
332 then \fIforw\fR uses a built\-in \fIwhatnow\fR,
333 it does not actually run the \fIwhatnow\fR program.
334 Hence, if you define your own \fIwhatnowproc\fR,
335 don't call it \fIwhatnow\fR since \fIforw\fR won't run it.
336
337 When \fIforw\fR is told to annotate the messages it forwards,
338 it doesn't actually annotate them until the draft is successfully sent.
339 If from the \fIwhatnowproc\fR,
340 you \fIpush\fR instead of \fIsend\fR,
341 it's possible to confuse \fIforw\fR by re\-ordering the file
342 (e.g., by using `folder\0\-pack') before the message is successfully sent.
343 \fIDist\fR and \fIrepl\fR don't have this problem.
344
345 To avoid prepending the leading dash characters in forwarded messages,
346 there is a `\-nodashmunging' option.  See the \*(lqHidden Features\*(rq
347 section of the \fIMH Administrator's Guide\fR for more details.
348 .En
349 @
350
351
352 1.10
353 log
354 @mention -nodashmunging
355 jlr
356 @
357 text
358 @d2 1
359 a2 1
360 .\" @@(#)$Id: forw.rf,v 1.9 90/04/05 15:08:44 sources Exp Locker: mh $
361 d16 3
362 d125 57
363 d252 4
364 @
365
366
367 1.9
368 log
369 @add ID
370 @
371 text
372 @d2 1
373 a2 1
374 .\" @@(#)$Id:$
375 d116 1
376 d209 4
377 @
378
379
380 1.8
381 log
382 @ make -[no]dashmunging hidden
383 @
384 text
385 @d2 1
386 @
387
388
389 1.7
390 log
391 @fix
392 @
393 text
394 @a15 1
395 \%[\-dashmunging] \%[\-nodashmunging]
396 a114 2
397 Specifying  `\-nodashmunging' will inhibit prepending the leading
398 dash and space characters, but this may confuse later bursters.
399 a189 2
400 .Ds
401 `\-dashmunging'
402 @
403
404
405 1.6
406 log
407 @put things back, do .NA stuff another way
408 @
409 text
410 @d140 1
411 a140 1
412 enables the following additional \fIcomponent\fR escapes:
413 d143 5
414 a147 5
415 .ta \w'Escape  'u +\w'Returns  'u
416 \fIEscape\fR    \fIReturns\fR   \fIDescription\fR
417 \fIdigest\fR    string  Argument specified with `\-digest'
418 \fIissue\fR     integer Argument specified with `\-issue'
419 \fIvolume\fR    integer Argument specified with `\-volume'
420 @
421
422
423 1.5
424 log
425 @typo
426 @
427 text
428 @d2 2
429 a3 2
430 .TH FORW 1 @@(MHCENTERFOOT) @@(MHLEFTFOOT)
431 .SH .NA
432 d5 1
433 a5 1
434 .SH .SY
435 @
436
437
438 1.4
439 log
440 @fixup for makewhatis
441 @
442 text
443 @d2 1
444 a2 1
445 .TH FORW 1 [mh.6] MH
446 @
447
448
449 1.3
450 log
451 @minor docs
452 @
453 text
454 @d2 2
455 a3 2
456 .SC FORW 1
457 .NA
458 d5 1
459 a5 1
460 .SY
461 @
462
463
464 1.2
465 log
466 @document -[no]dashmunging
467 @
468 text
469 @d139 14
470 a152 2
471 implement a digest facility for \fIMH\fR.
472 See the \fIMH\fR user's manual for more information.
473 d181 1
474 a181 1
475 comp(1), dist(1), repl(1), send(1), whatnow(1)
476 @
477
478
479 1.1
480 log
481 @Initial revision
482 @
483 text
484 @d16 1
485 d111 4
486 a114 1
487 Each forwarded message is separated with an encapsulation delimiter so that
488 d116 2
489 d181 2
490 @