4 .TH REPL %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
6 repl \- reply to a message
13 .RB [ \-annotate " | " \-noannotate ]
14 .RB [ \-group " | " \-nogroup ]
19 .RB [ \-query " | " \-noquery ]
22 .RB [ \-format " | " \-noformat ]
25 .RB [ \-inplace " | " \-noinplace ]
26 .RB [ \-mime " | " \-nomime ]
35 .RB [ \-nodraftfolder ]
41 .RB [ \-nowhatnowproc ]
50 may be used to produce a reply to an existing message.
52 In its simplest form (with no arguments),
55 message\-form skeleton in reply to the current message in the current
56 folder, and invoke the whatnow shell.
58 In order to construct the message draft of the reply,
61 a reply template to guide its actions. A reply template is simply a
69 is given (it is on by default), then
71 will use the standard forms file \*(lqreplcomps\*(rq. This will construct
72 a draft message that is intended to be sent only to the author of the
73 message to which you are replying. If a file named \*(lqreplcomps\*(rq
76 directory, it will be used instead of this
79 The default reply template \*(lqreplcomps\*(rq will direct
81 to construct the reply message draft as follows:
85 To: <Mail\-Reply\-To> or <Reply\-To> or <From>
86 cc: <To> and <cc> and <personal address>
87 Fcc: {fcc switch} or +outbox
88 Subject: Re: <Subject>
89 In\-Reply\-To: <Message\-Id>
90 References: <Message\-Id>
91 Comments: In\-Reply\-To <From> or <apparently from> or <Sender>
98 where field names enclosed in angle brackets (<\ >) indicate the
99 contents of the named field from the message to which the reply is
102 By default, the \*(lqcc:\*(rq field is empty. You may selectively add
103 addresses to this default with the
106 switch. This switch takes an
108 .IR all / to / cc / me )
109 which specifies who gets added to the default
110 \*(lqcc:\*(rq list of the reply. You may give this switch multiple times (with
111 different arguments) if you wish to add multiple types of addresses.
118 standard forms file \*(lqreplgroupcomps\*(rq. This will construct a
119 draft message that is intended as a group or followup reply. If a file
120 named \*(lqreplgroupcomps\*(rq exists in the user's nmh directory, it
121 will be used instead of this default forms file.
123 The default group reply template \*(lqreplgroupcomps\*(rq will direct
125 to construct the reply message draft as follows:
129 To: <Mail\-Followup\-To>
130 Subject: Re: <Subject>
131 In\-Reply\-To: Message from <From> of <Date>.
132 .ti +\w'In\-Reply\-To: 'u
138 or if the field <Mail\-Followup\-To> is not available:
142 To: <Mail\-Reply\-To> or <Reply\-To> or <From>
143 cc: <To> and <cc> and <personal address>
144 Subject: Re: <Subject>
145 In\-Reply\-To: Message from <From> of <Date>.
146 .ti +\w'In\-Reply\-To: 'u
152 By default, the \*(lqcc:\*(rq contains all the addresses shown. You may
153 selectively remove addresses from this default with the
157 This switch takes an argument (
158 .IR all / to / cc / me )
159 which specifies who gets removed
160 from the default \*(lqcc:\*(rq list of the reply. You may give this switch
161 multiple times (with different arguments) if you wish to remove multiple types
164 In any case, you may specify an alternate forms file with the switch
170 switch modifies the action of
174 interactively asking you if each address that normally would be placed in
175 the \*(lqTo:\*(rq and \*(lqcc:\*(rq list should actually be sent a copy.
176 This is useful for special\-purpose replies. Note that the position of
181 switches, like all other switches which take a
182 positive and negative form, is important.
184 Lines beginning with the fields \*(lqTo:\*(rq, \*(lqcc:\*(rq, and
185 \*(rqBcc:\*(rq will be standardized and have duplicate addresses removed.
191 formatting of these fields.
193 If the draft already exists,
195 will ask you as to the disposition
196 of the draft. A reply of
203 will replace the existing draft with a blank
206 will display the draft.
210 for a description of the
214 switches. Note that while in the editor, the message being replied
215 to is available through a link named \*(lq@\*(rq (assuming the default
217 In addition, the actual pathname of the message is
218 stored in the environment variable
221 the folder containing the message is stored in the environment variable
226 uses a forms file to direct it how to construct
227 the beginning of the draft, it uses a message filter file to direct
228 it as to how the message to which you are replying should be filtered
229 (re\-formatted) in the body of the draft. The filter file for
231 should be a standard form file for
237 to format the message to which you are replying.
246 which message filter file to use.
250 is given (it is the default), then the message
251 to which you are replying is not included in the body of the draft.
255 is given, then a default message filter file
256 is used. This default message filter should be adequate for most users.
258 .RI \*(lq mhl.reply \*(rq
267 which outputs each line of the body of the message prefaced with the
268 \*(lq>\*(rq character and a space.
271 .RI \*(lq mhl.reply \*(rq
275 it will be used instead of this form. You may specify an alternate
276 message filter file with the switch
280 Other reply filters are commonly used, such as:
285 body:nocomponent,compwidth=9,offset=9
289 which says to output a blank line and then the body of the message
290 being replied\-to, indented by one tab\-stop. Another popular format
295 message-id:nocomponent,\|nonewline,\\
296 formatfield=\*(lqIn message %{text},\ \*(rq
297 from:nocomponent,\|formatfield=\*(lq%(decode(friendly{text})) writes:\*(rq
298 body:component=\*(lq>\*(rq,\|overflowtext=\*(lq>\*(rq,\|overflowoffset=0
302 This message filter file cites the Message-ID and author of the message
303 being replied\-to, and then outputs each line of the body prefaced with
304 the \*(lq>\*(rq character.
306 You can also use an external format program to format the message body.
307 The format program is specified by the
309 profile entry, and is enabled by the \*(lqformat\*(rq flag. A message
310 filter using an external format program would look like this:
314 body:component=\*(lq>\*(rq,\|nowrap,\|format
320 documentation for more information.
322 To use the MIME rules for encapsulation, specify the
334 automatically, unless you
335 add this line to your
343 Otherwise, you must specifically give the command
349 prior to sending the draft.
353 switch is given, the message being replied\-to will
354 be annotated with the lines
361 where the address list contains one line for each addressee.
362 The annotation will be done only if the message is sent directly from
364 If the message is not sent immediately from
366 .RB \*(lq "comp\ \-use" \*(rq
367 may be used to re\-edit and send the constructed
368 message, but the annotations won't take place. Normally annotations are
369 done inplace in order to preserve any links to the message. You may use
372 switch to change this.
374 Although the default template specifies that a copy of the reply will be
380 switch is given it will override the default value.
381 More than one folder, each preceded by
386 In addition to the standard
390 also recognizes the following additional
396 .ta \w'Escape 'u +\w'Returns 'u
397 .I "Escape Returns Description"
398 fcc string Any folders specified with `\-fcc\ folder'
402 To avoid reiteration,
404 strips any leading `Re: ' strings from
418 draft folder facility. This is an advanced (and highly
419 useful) feature. Consult the
424 Upon exiting from the editor,
430 for a discussion of available
431 options. The invocation of this program can be inhibited by using the
433 switch. (In truth of fact, it is the
435 program which starts the initial edit. Hence,
438 prevent any edit from occurring.)
442 switch is intended to be used by the Emacs mh-e interface
446 .BR \-nowhatnowproc .
449 to be created, containing the draft message that would normally be presented
450 to the user for editing.
451 No mail is actually sent.
456 switch specifies the message to be replied to as an
457 exact filename rather than as an
459 folder and message number. It is
460 intended to be used by the
464 The same caveats apply to this option as to the
471 .ta \w'%etcdir%/ExtraBigFileName 'u
472 ^%etcdir%/replcomps~^The standard reply template
473 ^or <mh\-dir>/replcomps~^Rather than the standard template
474 ^%etcdir%/replgroupcomps~^The standard `reply -group' template
475 ^or <mh\-dir>/replgroupcomps~^Rather than the standard template
476 ^%etcdir%/mhl.reply~^The standard message filter
477 ^or <mh\-dir>/mhl.reply~^Rather than the standard filter
478 ^$HOME/\&.mh\(ruprofile~^The user profile
479 ^<mh\-dir>/draft~^The draft file
482 .SH "PROFILE COMPONENTS"
486 .ta \w'ExtraBigProfileName 'u
487 ^Path:~^To determine the user's nmh directory
488 ^Alternate\-Mailboxes:~^To determine the user's mailboxes
489 ^Current\-Folder:~^To find the default current folder
490 ^Draft\-Folder:~^To find the default draft\-folder
491 ^Editor:~^To override the default editor
492 ^Msg\-Protect:~^To set mode when creating a new message (draft)
493 ^fileproc:~^Program to refile the message
494 ^mhlproc:~^Program to filter message being replied\-to
495 ^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
499 mhbuild(1), comp(1), forw(1), send(1), whatnow(1), mh\-format(5)
503 .RB ` +folder "' defaults to the current folder"
504 .RB ` msg "' defaults to cur"
506 .RB ` "\-nocc\ all" "' with `\-nogroup', `\-cc\ all' with `\-group'"
508 .RB ` \-nodraftfolder '
513 .RB ` "\-width\ 72" '
517 If a folder is given, it will become the current folder. The message
518 replied\-to will become the current message.
521 If any addresses occur in the reply template, addresses in the template
522 that do not contain hosts are defaulted incorrectly. Instead of using
523 the localhost for the default,
525 uses the sender's host.
526 Moral of the story: if you're going to include addresses in a reply
527 template, include the host portion of the address.
532 switch is only used to do address-folding; other
533 headers are not line\-wrapped.
543 it does not actually run the
546 Hence, if you define your own
554 If your current working directory is not writable, the link named
555 \*(lq@\*(rq is not available.