1 .TH REPL %manext1% "October 15, 2016" "%nmhversion%"
6 repl \- reply to a message
15 .RB [ \-annotate " | " \-noannotate ]
16 .RB [ \-group " | " \-nogroup ]
21 .RB [ \-query " | " \-noquery ]
24 .RB [ \-format " | " \-noformat ]
27 .RB [ \-inplace " | " \-noinplace ]
28 .RB [ \-mime " | " \-nomime ]
37 .RB [ \-nodraftfolder ]
42 .IR "type argstring" ]
45 .RB [ \-nowhatnowproc ]
57 may be used to produce a reply to an existing message.
59 In its simplest form (with no arguments),
62 message\-form skeleton in reply to the current message in the current
63 folder, and invoke the whatnow shell.
65 In order to construct the message draft of the reply,
68 a reply template to guide its actions. A reply template is simply a
76 is given (it is on by default), then
78 will use the standard forms file \*(lqreplcomps\*(rq. This will construct
79 a draft message that is intended to be sent only to the author of the
80 message to which you are replying. If a file named \*(lqreplcomps\*(rq
83 directory, it will be used instead of this
86 The default reply template \*(lqreplcomps\*(rq will direct
88 to construct the reply message draft as follows:
92 To: <Mail\-Reply\-To> or <Reply\-To> or <From>
93 cc: <To> and <cc> and <personal address>
94 Fcc: {fcc switch} or +outbox
95 Subject: Re: <Subject>
96 In\-Reply\-To: <Message\-Id>
97 References: <Message\-Id>
98 Comments: In\-Reply\-To <From> or <apparently from> or <Sender>
105 where field names enclosed in angle brackets (<\ >) indicate the
106 contents of the named field from the message to which the reply is
109 By default, the \*(lqcc:\*(rq field is empty. You may selectively add
110 addresses to this default with the
113 switch. This switch takes an
115 .RI ( all / to / cc / me )
116 which specifies who gets added to the default
117 \*(lqcc:\*(rq list of the reply. You may give this switch multiple times (with
118 different arguments) if you wish to add multiple types of addresses.
125 standard forms file \*(lqreplgroupcomps\*(rq. This will construct a
126 draft message that is intended as a group or followup reply. If a file
127 named \*(lqreplgroupcomps\*(rq exists in the user's nmh directory, it
128 will be used instead of this default forms file, unless you specify
129 another forms file on the command line or in your profile.
131 The default group reply template \*(lqreplgroupcomps\*(rq will direct
133 to construct the reply message draft as follows:
137 To: <Mail\-Followup\-To>
138 Subject: Re: <Subject>
139 In\-Reply\-To: Message from <From> of <Date>.
140 .ti +\w'In\-Reply\-To: 'u
146 or if the field <Mail\-Followup\-To> is not available:
150 To: <Mail\-Reply\-To> or <Reply\-To> or <From>
151 cc: <To> and <cc> and <personal address>
152 Subject: Re: <Subject>
153 In\-Reply\-To: Message from <From> of <Date>.
154 .ti +\w'In\-Reply\-To: 'u
160 By default, the \*(lqcc:\*(rq contains all the addresses shown. You may
161 selectively remove addresses from this default with the
165 This switch takes an argument (
166 .IR all / to / cc / me )
167 which specifies who gets removed
168 from the default \*(lqcc:\*(rq list of the reply. You may give this switch
169 multiple times (with different arguments) if you wish to remove multiple types
172 In any case, you may specify an alternate forms file with the switch
178 switch modifies the action of
182 interactively asking you if each address that normally would be placed in
183 the \*(lqTo:\*(rq and \*(lqcc:\*(rq list should actually be sent a copy.
184 This is useful for special\-purpose replies. Note that the position of
189 switches, like all other switches which take a
190 positive and negative form, is important.
192 Lines beginning with the fields \*(lqTo:\*(rq, \*(lqcc:\*(rq, and
193 \*(rqBcc:\*(rq will be standardized and have duplicate addresses removed.
199 formatting of these fields.
201 If the draft already exists,
203 will ask you as to the disposition
204 of the draft. A reply of
211 will replace the existing draft with a blank
214 will display the draft.
218 for a description of the
222 switches. Note that while in the editor, with
224 and if the current directory is writable, the message being replied
225 to is available through a link named \*(lq@\*(rq (assuming the default
227 In addition, the actual pathname of the message is
228 stored in the environment variable
231 the folder containing the message is stored in the environment variable
233 The creation of the \*(lq@\*(rq file is controlled via the
243 to pass the arguments for
247 Both arguments are required;
249 must be non-empty while
251 can be empty, e.g., '' in a shell command line. The
253 switch can be used multiple times.
254 See the Convert Interface section of the
256 man page for description of the convert mechanism, and
257 .I %docdir%/contrib/replaliases
258 for examples of its use.
262 uses a forms file to direct it how to construct
263 the beginning of the draft, it uses a message filter file to direct
264 it as to how the message to which you are replying should be filtered
265 (re\-formatted) in the body of the draft. The filter file for
267 should be a standard form file for
273 to format the message to which you are replying.
282 which message filter file to use.
286 is given (it is the default) and the
288 switch is not used, then the message
289 to which you are replying is not included in the body of the draft.
293 is given, then a default message filter file
294 is used. This default message filter should be adequate for most users.
296 .RI \*(lq mhl.reply \*(rq
305 which outputs each line of the body of the message prefaced with the
306 \*(lq>\*(rq character and a space.
309 .RI \*(lq mhl.reply \*(rq
313 it will be used instead of this form. You may specify an alternate
314 message filter file with the switch
318 Other reply filters are commonly used, such as:
323 body:nocomponent,compwidth=9,offset=9
327 which says to output a blank line and then the body of the message
328 being replied\-to, indented by one tab\-stop. Another popular format
333 message-id:nocomponent,\|nonewline,\\
334 formatfield=\*(lqIn message %{text},\ \*(rq
335 from:nocomponent,\|formatfield=\*(lq%(decode(friendly{text})) writes:\*(rq
336 body:component=\*(lq>\*(rq,\|overflowtext=\*(lq>\*(rq,\|overflowoffset=0
340 This message filter file cites the Message-ID and author of the message
341 being replied\-to, and then outputs each line of the body prefaced with
342 the \*(lq>\*(rq character.
344 You can also use an external format program to format the message body.
345 The format program is specified by the
347 profile entry, and is enabled by the \*(lqformat\*(rq flag. A message
348 filter using an external format program would look like this:
352 body:component=\*(lq>\*(rq,\|nowrap,\|format
358 documentation for more information. The format program can be changed by
366 To use the MIME rules for encapsulation, specify the
378 automatically; you must specifically give the command
384 prior to sending the draft.
388 switch is given, the message being replied\-to will
389 be annotated with the lines
396 where the address list contains one line for each addressee.
397 The annotation will be done only if the message is sent directly from
399 If the message is not sent immediately from
401 .RB \*(lq "comp\ \-use" \*(rq
402 may be used to re\-edit and send the constructed
403 message, but the annotations won't take place. Normally annotations are
404 done inplace in order to preserve any links to the message. You may use
407 switch to change this.
409 Although the default template specifies that a copy of the reply will be
415 switch is given it will override the default value.
416 More than one folder, each preceded by
421 In addition to the standard
425 also recognizes the following additional
431 .ta \w'Escape 'u +\w'Returns 'u
432 .I "Escape Returns Description"
433 fcc string Any folders specified with `\-fcc\ folder'
437 To avoid reiteration,
439 strips any leading `Re: ' strings from
453 draft folder facility. This is an advanced (and highly
454 useful) feature. Consult the
459 Upon exiting from the editor,
465 for a discussion of available
466 options. The invocation of this program can be inhibited by using the
468 switch. (In truth of fact, it is the
470 program which starts the initial edit. Hence,
473 prevent any edit from occurring.)
477 switch is intended to be used by the Emacs mh-e interface
481 .BR \-nowhatnowproc .
484 to be created, containing the draft message that would normally be presented
485 to the user for editing.
486 No mail is actually sent.
491 switch specifies the message to be replied to as an
492 exact filename rather than as an
494 folder and message number.
495 The same caveats apply to this option as to the
500 looks for all format, filter and template files in multiple locations:
501 absolute pathnames are accessed directly, tilde expansion is done on
502 usernames, and files are searched for in the user's
504 directory as specified in their profile. If not found there, the directory
505 .RI \*(lq %nmhetcdir% \*(rq
510 .ta \w'%nmhetcdir%/ExtraBigFileName 'u
511 ^%nmhetcdir%/replcomps~^The standard reply template
512 ^or <mh\-dir>/replcomps~^Rather than the standard template
513 ^%nmhetcdir%/replgroupcomps~^The standard `reply -group' template
514 ^or <mh\-dir>/replgroupcomps~^Rather than the standard template
515 ^%nmhetcdir%/mhl.reply~^The standard message filter
516 ^or <mh\-dir>/mhl.reply~^Rather than the standard filter
517 ^$HOME/\&.mh\(ruprofile~^The user profile
518 ^<mh\-dir>/draft~^The draft file
520 .SH "PROFILE COMPONENTS"
524 .ta \w'ExtraBigProfileName 'u
525 ^Path:~^To determine the user's nmh directory
526 ^Alternate\-Mailboxes:~^To determine the user's mailboxes
527 ^Current\-Folder:~^To find the default current folder
528 ^Draft\-Folder:~^To find the default draft\-folder
529 ^Editor:~^To override the default editor
530 ^Msg\-Protect:~^To set mode when creating a new message (draft)
531 ^fileproc:~^Program to refile the message
532 ^mhlproc:~^Program to filter message being replied\-to
533 ^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
543 .I %docdir%/contrib/replaliases
546 .RB ` +folder "' defaults to the current folder"
547 .RB ` msg "' defaults to cur"
549 .RB ` "\-nocc\ all" "' with `\-nogroup', `\-cc\ all' with `\-group'"
551 .RB ` \-nodraftfolder '
557 .RB ` "\-width\ 72" '
560 If a folder is given, it will become the current folder. The message
561 replied\-to will become the current message.
563 If any addresses occur in the reply template, addresses in the template
564 that do not contain hosts are defaulted incorrectly. Instead of using
565 the localhost for the default,
567 uses the sender's host.
568 Moral of the story: if you're going to include addresses in a reply
569 template, include the host portion of the address.
574 switch is only used to do address-folding; other
575 headers are not line\-wrapped.
585 it does not actually run the
588 Hence, if you define your own