Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / doc / RCS / repl.rf,v
1 head    1.14;
2 access;
3 symbols;
4 locks; strict;
5
6
7 1.14
8 date    96.02.09.00.25.00;      author jromine; state Exp;
9 branches;
10 next    1.13;
11
12 1.13
13 date    96.02.08.19.01.16;      author jromine; state Exp;
14 branches;
15 next    1.12;
16
17 1.12
18 date    95.12.06.21.07.03;      author jromine; state Exp;
19 branches;
20 next    1.11;
21
22 1.11
23 date    92.11.18.01.18.54;      author jromine; state Exp;
24 branches;
25 next    1.10;
26
27 1.10
28 date    90.12.17.16.00.35;      author mh;      state Exp;
29 branches;
30 next    1.9;
31
32 1.9
33 date    90.04.05.15.09.27;      author sources; state Exp;
34 branches;
35 next    1.8;
36
37 1.8
38 date    90.03.22.11.31.46;      author sources; state Exp;
39 branches;
40 next    1.7;
41
42 1.7
43 date    90.03.20.23.32.13;      author sources; state Exp;
44 branches;
45 next    1.6;
46
47 1.6
48 date    90.03.20.19.42.28;      author sources; state Exp;
49 branches;
50 next    1.5;
51
52 1.5
53 date    90.03.20.17.36.42;      author sources; state Exp;
54 branches;
55 next    1.4;
56
57 1.4
58 date    90.03.18.20.49.33;      author sources; state Exp;
59 branches;
60 next    1.3;
61
62 1.3
63 date    90.03.16.14.22.06;      author sources; state Exp;
64 branches;
65 next    1.2;
66
67 1.2
68 date    90.03.16.14.17.36;      author sources; state Exp;
69 branches;
70 next    1.1;
71
72 1.1
73 date    90.03.16.14.07.20;      author sources; state Exp;
74 branches;
75 next    ;
76
77
78 desc
79 @@
80
81
82 1.14
83 log
84 @typo
85 @
86 text
87 @.\"    @@(MHWARNING)
88 .\" @@(#)$Id: repl.rf,v 1.13 1996/02/08 19:01:16 jromine Exp jromine $
89 .SC REPL 1
90 .NA
91 repl \- reply to a message
92 .SY
93 repl
94 \%[+folder] \%[msg]
95 \%[\-annotate] \%[\-noannotate]
96 \%[\-cc\ all/to/cc/me] \%[\-nocc\ all/to/cc/me]
97 \%[\-draftfolder\ +folder] \%[\-draftmessage\ msg] \%[\-nodraftfolder]
98 \%[\-editor\ editor] \%[\-noedit]
99 \%[\-fcc\ +folder]
100 \%[\-filter\ filterfile]
101 \%[\-form\ formfile]
102 .\" \%[\-format] \%[\-noformat]
103 \%[\-inplace] \%[\-noinplace]
104 @@BEGIN: MIME
105 \%[\-mime] \%[\-nomime]
106 @@END: MIME
107 \%[\-query] \%[\-noquery]
108 \%[\-width\ columns]
109 \%[\-whatnowproc\ program] \%[\-nowhatnowproc]
110 \%[\-help]
111 .DE
112 \fIRepl\fR aids a user in producing a reply to an existing
113 message.
114 \fIRepl\fR uses a reply template to guide its actions when constructing
115 the message draft of the reply.
116 In its simplest form (with no arguments), 
117 it will set up
118 a message\-form skeleton in reply to the current message in the
119 current folder, and invoke the whatnow shell.
120 The default reply template will direct \fIrepl\fR to construct
121 the composed message as follows:
122
123 .nf
124 .in 1i
125 To: <Reply\-To> or <From>
126 cc: <cc>, <To>, and yourself
127 Subject: Re: <Subject>
128 In\-reply\-to: Your message of <Date>.
129 .ti +\w'In\-reply\-to: 'u
130 <Message\-Id>
131 .in .5i
132 .fi
133
134 where field names enclosed in angle brackets (<\ >) indicate the
135 contents of the named field from the message to which the reply
136 is being made.  A reply template is simply a format file.
137 See \fImh\-format\fR\0(5) for the details.
138
139 The `\-cc\ type' switch takes an argument which specifies
140 who gets placed on the \*(lqcc:\*(rq list of the reply.
141 The `\-query' switch modifies the action of `\-cc\ type' switch by
142 interactively asking you if each address that normally would be placed
143 in the \*(lqTo:\*(rq and \*(lqcc:\*(rq list should actually be sent a copy.
144 (This is useful for special\-purpose replies.)
145 Note that the position of the `\-cc' and `\-nocc' switches,
146 like all other switches which take a positive and negative form,
147 is important.
148
149 .\" --this seems to not be used anymore. /JLR
150 .\" With the `\-format' switch one can indicate if Internet\-style
151 .\" formatting should be used (or not be used with `\-noformat').
152 .\" If present (the default), then 
153 Lines beginning with the fields
154 \*(lqTo:\*(rq, \*(lqcc:\*(rq, and \*(rqBcc:\*(rq
155 will be standardized and have duplicate addresses removed.
156 In addition, the `\-width\ columns' switch will guide \fIrepl\fR's formatting
157 of these fields.
158
159 If the file named \*(lqreplcomps\*(rq exists in the user's MH directory,
160 it will be used instead of the default form.
161 In either case, the file specified by `\-form\ formfile' will be used
162 if given.
163
164 If the draft already exists,
165 \fIrepl\fR will ask you as to the disposition of the draft.
166 A reply of \fBquit\fR will abort \fIrepl\fR, leaving the draft intact;
167 \fBreplace\fR will replace the existing draft with a blank skeleton;
168 and \fBlist\fR will display the draft.
169
170 See \fIcomp\fR\0(1) for a description of the `\-editor' and `\-noedit'
171 switches.
172 Note that while in the editor,
173 the message being replied to is available through a link named \*(lq@@\*(rq
174 (assuming the default \fIwhatnowproc\fR\0).
175 In addition, the actual pathname of the message is stored in the envariable
176 \fB$editalt\fR,
177 and the pathname of the folder containing the message is stored in the
178 envariable \fB$mhfolder\fR.
179
180 Although \fIrepl\fR uses the `\-form\ formfile' switch to direct it how
181 to construct the beginning of the draft, the `\-filter\ filterfile'
182 switch directs \fIrepl\fR as to how the message being replied\-to
183 should be formatted in the body of the draft.
184 If `\-filter' is not specified,
185 then the message being replied\-to is not included in the body of the
186 draft.
187 If `\-filter\ filterfile' is specified,
188 then the message being replied\-to is filtered (re\-formatted) prior to
189 being output to the body of the draft.
190 The filter file for \fIrepl\fR should be a standard form file for
191 \fImhl\fR, as \fIrepl\fR will invoke \fImhl\fR to format the message
192 being replied\-to.
193 There is no default message filter (`\-filter' must be followed by a
194 file name).
195 A filter file that is commonly used is:
196
197 .nf
198 .in +.5i
199 :
200 body:nocomponent,compwidth=9,offset=9
201 .in -.5i
202 .fi
203
204 which says to output a blank line and then the body of the message
205 being replied\-to, indented by one tab\-stop.
206 Another format popular on USENET is:
207
208 .nf
209 .in +.5i
210 .ie n \{
211 message-id:nocomponent,\|nonewline,\\
212 formatfield=\*(lqIn message %{text},\ \*(rq \}
213 .el message-id:nocomponent,\|nonewline,\|formatfield=\*(lqIn message %{text},\ \*(rq
214 from:nocomponent,\|formatfield=\*(lq%(friendly{text}) writes:\*(rq
215 body:component=\*(lq>\*(rq,\|overflowtext=\*(lq>\*(rq,\|overflowoffset=0
216 .in -.5i
217 .fi
218
219 Which cites the Message-ID and author
220 of the message being replied\-to,
221 and then outputs each line of the body prefaced
222 with the \*(lq>\*(rq character.
223
224 @@BEGIN: MIME
225 To use the MIME rules for encapsulation,
226 specify the `\-mime' switch.
227 This directs \fIrepl\fR to generate an \fImhn\fR composition file.
228 Note that MH will not invoke \fImhn\fR automatically,
229 unless you  add this line to your \&.mh\(ruprofile file:
230 .sp
231 .in +.5i
232 automhnproc: mhn
233 .in -.5i
234 .sp
235 Otherwise,
236 you must specifically give the command
237 .sp
238 .in +.5i
239 What now? edit mhn
240 .in -.5i
241 .sp
242 prior to sending the draft.
243
244 If you don't want to use this feature,
245 the manual page for \fIforw\fR contains another idea on how you can
246 automate this somewhat.
247
248 @@END: MIME
249 If the `\-annotate' switch is given,
250 the message being replied\-to will be annotated with the lines
251
252      Replied:\ date
253      Replied:\ addrs
254
255 where the address list contains one line for each addressee.
256 The annotation
257 will be done only if the message is sent directly from \fIrepl\fR.
258 If the message is not sent immediately from \fIrepl\fR,
259 \*(lqcomp\ \-use\*(rq may be used to re\-edit and send the constructed message,
260 but the annotations won't take place.
261 The `\-inplace' switch causes annotation to
262 be done in place in order to preserve links to the annotated message.
263
264 The `\-fcc\ +folder' switch can be used to automatically specify a folder to
265 receive Fcc:s.
266 More than one folder, each preceeded by `\-fcc' can be named.
267
268 In addition to the standard \fImh\-format\fR\0(5) escapes,
269 \fIrepl\fR also recognizes the following additional
270 \fIcomponent\fR escape:
271 .sp 1
272 .nf
273 .ta \w'Escape  'u +\w'Returns  'u
274 \fIEscape\fR    \fIReturns\fR   \fIDescription\fR
275 \fIfcc\fR       string  Any folders specified with `\-fcc\ folder'
276 .re
277 .fi
278
279 To avoid reiteration,
280 \fIrepl\fR strips any leading `Re: ' strings from
281 the \fIsubject\fR component. 
282
283 The `\-draftfolder\ +folder' and `\-draftmessage\ msg' switches invoke the
284 \fIMH\fR draft folder facility.
285 This is an advanced (and highly useful) feature.
286 Consult the \fBAdvanced Features\fR section of the \fIMH\fR manual for more
287 information.
288
289 Upon exiting from the editor,
290 \fIrepl\fR will invoke the \fIwhatnow\fR program.
291 See \fIwhatnow\fR\0(1) for a discussion of available options.
292 The invocation of this program can be inhibited by using the `\-nowhatnowproc'
293 switch.
294 (In truth of fact,
295 it is the \fIwhatnow\fR program which starts the initial edit.
296 Hence, `\-nowhatnowproc' will prevent any edit from occurring.)
297 .Fi
298 ^@@(MHETCPATH)/replcomps~^The reply template
299 ^or <mh\-dir>/replcomps~^Rather than the standard template
300 ^$HOME/\&.mh\(ruprofile~^The user profile
301 ^<mh\-dir>/draft~^The draft file
302 .Pr
303 ^Path:~^To determine the user's MH directory
304 .Ps
305 ^Alternate\-Mailboxes:~^To determine the user's mailboxes
306 .Ps
307 ^Current\-Folder:~^To find the default current folder
308 .Ps
309 ^Draft\-Folder:~^To find the default draft\-folder
310 .Ps
311 ^Editor:~^To override the default editor
312 .Ps
313 ^Msg\-Protect:~^To set mode when creating a new message (draft)
314 .Ps
315 ^fileproc:~^Program to refile the message
316 .Ps
317 ^mhlproc:~^Program to filter message being replied\-to
318 .Ps
319 ^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
320 .Sa
321 comp(1), dist(1), forw(1), send(1), whatnow(1), mh\-format(5)
322 .De
323 `+folder' defaults to the current folder
324 .Ds
325 `msg' defaults to cur
326 .Ds
327 `\-nocc\ all' at ATHENA sites, `\-cc\ all' otherwise
328 .Ds
329 `\-noannotate'
330 .Ds
331 `\-nodraftfolder'
332 .Ds
333 `\-noinplace'
334 @@BEGIN: MIME
335 .Ds
336 `\-nomime'
337 @@END: MIME
338 .Ds
339 `\-noquery'
340 .Ds
341 `\-width\ 72'
342 .Co
343 If a folder is given, it will become the current folder.
344 The message replied\-to will become the current message.
345 .Hi
346 Prior to using the format string mechanism,
347 `\-noformat' used to cause address headers to be output as\-is.
348 Now all address fields are formatted using Internet standard guidelines.
349 .Bu
350 If any addresses occur in the reply template,
351 addresses in the template that do not contain hosts are defaulted incorrectly.
352 Instead of using the localhost for the default,
353 \fIrepl\fR uses the sender's host.
354 Moral of the story: if you're going to include addresses in a reply template,
355 include the host portion of the address.
356
357 The `\-width columns' switch is only used 
358 to do address-folding; other headers are not line\-wrapped.
359
360 If \fIwhatnowproc\fR is \fIwhatnow\fR,
361 then \fIrepl\fR uses a built\-in \fIwhatnow\fR,
362 it does not actually run the \fIwhatnow\fR program.
363 Hence, if you define your own \fIwhatnowproc\fR,
364 don't call it \fIwhatnow\fR since \fIrepl\fR won't run it.
365
366 If your current working directory is not writable,
367 the link named \*(lq@@\*(rq is not available.
368 .En
369 @
370
371
372 1.13
373 log
374 @fix typo
375 @
376 text
377 @d2 1
378 a2 1
379 .\" @@(#)$Id: repl.rf,v 1.12 1995/12/06 21:07:03 jromine Exp jromine $
380 d141 1
381 a141 1
382 This directs \fIreply\fR to generate an \fImhn\fR composition file.
383 @
384
385
386 1.12
387 log
388 @add repl -mime
389 @
390 text
391 @d2 1
392 a2 1
393 .\" @@(#)$Id: repl.rf,v 1.11 1992/11/18 01:18:54 jromine Exp jromine $
394 d158 1
395 a158 1
396 If you don't want to use this featuer,
397 d160 1
398 a160 1
399 automate this somewhat
400 @
401
402
403 1.11
404 log
405 @demo using "nonewline"; pretty output for troff
406 @
407 text
408 @d2 1
409 a2 1
410 .\" @@(#)$Id: repl.rf,v 1.10 1990/12/17 16:00:35 mh Exp jromine $
411 d18 3
412 d138 25
413 d248 4
414 @
415
416
417 1.10
418 log
419 @remove default "-format"
420 jlr
421 @
422 text
423 @d2 1
424 a2 1
425 .\" @@(#)$Id: repl.rf,v 1.9 90/04/05 15:09:27 sources Exp Locker: mh $
426 d121 6
427 a126 3
428 message-id:nocomponent,formatfield=\\
429 "In message %{text}you write:"
430 body:component=">",overflowtext=">",overflowoffset=0
431 d130 2
432 a131 1
433 Which cites the Message-ID of the message being replied\-to,
434 @
435
436
437 1.9
438 log
439 @add ID
440 @
441 text
442 @d2 1
443 a2 1
444 .\" @@(#)$Id:$
445 a209 2
446 .Ds
447 `\-format'
448 @
449
450
451 1.8
452 log
453 @put things back, do .NA stuff another way
454 @
455 text
456 @d2 1
457 @
458
459
460 1.7
461 log
462 @update USENET repl filter example
463 @
464 text
465 @d2 2
466 a3 2
467 .TH REPL 1 @@(MHCENTERFOOT) @@(MHLEFTFOOT)
468 .SH .NA
469 d5 1
470 a5 1
471 .SH .SY
472 @
473
474
475 1.6
476 log
477 @typo
478 @
479 text
480 @d120 2
481 a121 1
482 :
483 d126 3
484 a128 1
485 Which prefaces each line of the body with the \*(lq>\*(rq character.
486 @
487
488
489 1.5
490 log
491 @fixup for makewhatis
492 @
493 text
494 @d2 1
495 a2 1
496 .TH REPL 1 [mh.6] MH
497 @
498
499
500 1.4
501 log
502 @remove -[no]format 
503 mention {subject} semantics
504 @
505 text
506 @d2 2
507 a3 2
508 .SC REPL 1
509 .NA
510 d5 1
511 a5 1
512 .SY
513 @
514
515
516 1.3
517 log
518 @fixup
519 @
520 text
521 @d15 1
522 a15 1
523 \%[\-format] \%[\-noformat]
524 d59 10
525 a141 8
526 With the `\-format' switch one can indicate if Internet\-style
527 formatting should be used (or not be used with `\-noformat').
528 If present (the default), then lines beginning with the fields
529 \*(lqTo:\*(rq, \*(lqcc:\*(rq, and \*(rqBcc:\*(rq
530 will be standardized and have duplicate addresses removed.
531 In addition, the `\-width\ columns' switch will guide \fIrepl\fR's formatting
532 of these fields.
533
534 d146 1
535 a146 1
536 In addition to the standard escapes,
537 d157 4
538 d221 4
539 d232 3
540 @
541
542
543 1.2
544 log
545 @mention ">" format
546 @
547 text
548 @d149 3
549 a151 4
550 .in +.5i
551 .ta \w'Escape  'u
552 \fIEscape\fR    \fISubstitution\fR
553 \fIfcc\fR       Any folders specified with `\-fcc\ folder'
554 a152 1
555 .in -.5i
556 @
557
558
559 1.1
560 log
561 @Initial revision
562 @
563 text
564 @d46 4
565 a49 1
566 is being made.  The `\-cc\ type' switch takes an argument which specifies
567 d106 1
568 d108 9
569 a143 3
570 A reply template is simply a format file.
571 See \fImh\-format\fR\0(5) for the details.
572
573 d145 3
574 a147 1
575 \fIrepl\fR also recognizes the following additional escape:
576 d149 4
577 a152 3
578 .ta \w'escape  'u
579 \fIescape\fR    \fIsubstitution\fR
580 fcc     any `\-fcc\ folder' switches
581 d154 1
582 @