1 .TH REPL %manext1% "December 13, 2014" "%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 ]
55 may be used to produce a reply to an existing message.
57 In its simplest form (with no arguments),
60 message\-form skeleton in reply to the current message in the current
61 folder, and invoke the whatnow shell.
63 In order to construct the message draft of the reply,
66 a reply template to guide its actions. A reply template is simply a
74 is given (it is on by default), then
76 will use the standard forms file \*(lqreplcomps\*(rq. This will construct
77 a draft message that is intended to be sent only to the author of the
78 message to which you are replying. If a file named \*(lqreplcomps\*(rq
81 directory, it will be used instead of this
84 The default reply template \*(lqreplcomps\*(rq will direct
86 to construct the reply message draft as follows:
90 To: <Mail\-Reply\-To> or <Reply\-To> or <From>
91 cc: <To> and <cc> and <personal address>
92 Fcc: {fcc switch} or +outbox
93 Subject: Re: <Subject>
94 In\-Reply\-To: <Message\-Id>
95 References: <Message\-Id>
96 Comments: In\-Reply\-To <From> or <apparently from> or <Sender>
103 where field names enclosed in angle brackets (<\ >) indicate the
104 contents of the named field from the message to which the reply is
107 By default, the \*(lqcc:\*(rq field is empty. You may selectively add
108 addresses to this default with the
111 switch. This switch takes an
113 .RI ( all / to / cc / me )
114 which specifies who gets added to the default
115 \*(lqcc:\*(rq list of the reply. You may give this switch multiple times (with
116 different arguments) if you wish to add multiple types of addresses.
123 standard forms file \*(lqreplgroupcomps\*(rq. This will construct a
124 draft message that is intended as a group or followup reply. If a file
125 named \*(lqreplgroupcomps\*(rq exists in the user's nmh directory, it
126 will be used instead of this default forms file, unless you specify
127 another forms file on the command line or in your profile.
129 The default group reply template \*(lqreplgroupcomps\*(rq will direct
131 to construct the reply message draft as follows:
135 To: <Mail\-Followup\-To>
136 Subject: Re: <Subject>
137 In\-Reply\-To: Message from <From> of <Date>.
138 .ti +\w'In\-Reply\-To: 'u
144 or if the field <Mail\-Followup\-To> is not available:
148 To: <Mail\-Reply\-To> or <Reply\-To> or <From>
149 cc: <To> and <cc> and <personal address>
150 Subject: Re: <Subject>
151 In\-Reply\-To: Message from <From> of <Date>.
152 .ti +\w'In\-Reply\-To: 'u
158 By default, the \*(lqcc:\*(rq contains all the addresses shown. You may
159 selectively remove addresses from this default with the
163 This switch takes an argument (
164 .IR all / to / cc / me )
165 which specifies who gets removed
166 from the default \*(lqcc:\*(rq list of the reply. You may give this switch
167 multiple times (with different arguments) if you wish to remove multiple types
170 In any case, you may specify an alternate forms file with the switch
176 switch modifies the action of
180 interactively asking you if each address that normally would be placed in
181 the \*(lqTo:\*(rq and \*(lqcc:\*(rq list should actually be sent a copy.
182 This is useful for special\-purpose replies. Note that the position of
187 switches, like all other switches which take a
188 positive and negative form, is important.
190 Lines beginning with the fields \*(lqTo:\*(rq, \*(lqcc:\*(rq, and
191 \*(rqBcc:\*(rq will be standardized and have duplicate addresses removed.
197 formatting of these fields.
199 If the draft already exists,
201 will ask you as to the disposition
202 of the draft. A reply of
209 will replace the existing draft with a blank
212 will display the draft.
216 for a description of the
220 switches. Note that while in the editor, with
222 and if the current directory is writable, the message being replied
223 to is available through a link named \*(lq@\*(rq (assuming the default
225 In addition, the actual pathname of the message is
226 stored in the environment variable
229 the folder containing the message is stored in the environment variable
231 The creation of the \*(lq@\*(rq file is controlled via the
239 uses a forms file to direct it how to construct
240 the beginning of the draft, it uses a message filter file to direct
241 it as to how the message to which you are replying should be filtered
242 (re\-formatted) in the body of the draft. The filter file for
244 should be a standard form file for
250 to format the message to which you are replying.
259 which message filter file to use.
263 is given (it is the default) and the
265 switch is not used, then the message
266 to which you are replying is not included in the body of the draft.
270 is given, then a default message filter file
271 is used. This default message filter should be adequate for most users.
273 .RI \*(lq mhl.reply \*(rq
282 which outputs each line of the body of the message prefaced with the
283 \*(lq>\*(rq character and a space.
286 .RI \*(lq mhl.reply \*(rq
290 it will be used instead of this form. You may specify an alternate
291 message filter file with the switch
295 Other reply filters are commonly used, such as:
300 body:nocomponent,compwidth=9,offset=9
304 which says to output a blank line and then the body of the message
305 being replied\-to, indented by one tab\-stop. Another popular format
310 message-id:nocomponent,\|nonewline,\\
311 formatfield=\*(lqIn message %{text},\ \*(rq
312 from:nocomponent,\|formatfield=\*(lq%(decode(friendly{text})) writes:\*(rq
313 body:component=\*(lq>\*(rq,\|overflowtext=\*(lq>\*(rq,\|overflowoffset=0
317 This message filter file cites the Message-ID and author of the message
318 being replied\-to, and then outputs each line of the body prefaced with
319 the \*(lq>\*(rq character.
321 You can also use an external format program to format the message body.
322 The format program is specified by the
324 profile entry, and is enabled by the \*(lqformat\*(rq flag. A message
325 filter using an external format program would look like this:
329 body:component=\*(lq>\*(rq,\|nowrap,\|format
335 documentation for more information. The format program can be changed by
343 To use the MIME rules for encapsulation, specify the
355 automatically; you must specifically give the command
361 prior to sending the draft.
365 switch is given, the message being replied\-to will
366 be annotated with the lines
373 where the address list contains one line for each addressee.
374 The annotation will be done only if the message is sent directly from
376 If the message is not sent immediately from
378 .RB \*(lq "comp\ \-use" \*(rq
379 may be used to re\-edit and send the constructed
380 message, but the annotations won't take place. Normally annotations are
381 done inplace in order to preserve any links to the message. You may use
384 switch to change this.
386 Although the default template specifies that a copy of the reply will be
392 switch is given it will override the default value.
393 More than one folder, each preceded by
398 In addition to the standard
402 also recognizes the following additional
408 .ta \w'Escape 'u +\w'Returns 'u
409 .I "Escape Returns Description"
410 fcc string Any folders specified with `\-fcc\ folder'
414 To avoid reiteration,
416 strips any leading `Re: ' strings from
430 draft folder facility. This is an advanced (and highly
431 useful) feature. Consult the
436 Upon exiting from the editor,
442 for a discussion of available
443 options. The invocation of this program can be inhibited by using the
445 switch. (In truth of fact, it is the
447 program which starts the initial edit. Hence,
450 prevent any edit from occurring.)
454 switch is intended to be used by the Emacs mh-e interface
458 .BR \-nowhatnowproc .
461 to be created, containing the draft message that would normally be presented
462 to the user for editing.
463 No mail is actually sent.
468 switch specifies the message to be replied to as an
469 exact filename rather than as an
471 folder and message number.
472 The same caveats apply to this option as to the
477 looks for all format, filter and template files in multiple locations:
478 absolute pathnames are accessed directly, tilde expansion is done on
479 usernames, and files are searched for in the user's
481 directory as specified in their profile. If not found there, the directory
482 .RI \*(lq %nmhetcdir% \*(rq
487 .ta \w'%nmhetcdir%/ExtraBigFileName 'u
488 ^%nmhetcdir%/replcomps~^The standard reply template
489 ^or <mh\-dir>/replcomps~^Rather than the standard template
490 ^%nmhetcdir%/replgroupcomps~^The standard `reply -group' template
491 ^or <mh\-dir>/replgroupcomps~^Rather than the standard template
492 ^%nmhetcdir%/mhl.reply~^The standard message filter
493 ^or <mh\-dir>/mhl.reply~^Rather than the standard filter
494 ^$HOME/\&.mh\(ruprofile~^The user profile
495 ^<mh\-dir>/draft~^The draft file
497 .SH "PROFILE COMPONENTS"
501 .ta \w'ExtraBigProfileName 'u
502 ^Path:~^To determine the user's nmh directory
503 ^Alternate\-Mailboxes:~^To determine the user's mailboxes
504 ^Current\-Folder:~^To find the default current folder
505 ^Draft\-Folder:~^To find the default draft\-folder
506 ^Editor:~^To override the default editor
507 ^Msg\-Protect:~^To set mode when creating a new message (draft)
508 ^fileproc:~^Program to refile the message
509 ^mhlproc:~^Program to filter message being replied\-to
510 ^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
521 .RB ` +folder "' defaults to the current folder"
522 .RB ` msg "' defaults to cur"
524 .RB ` "\-nocc\ all" "' with `\-nogroup', `\-cc\ all' with `\-group'"
526 .RB ` \-nodraftfolder '
532 .RB ` "\-width\ 72" '
535 If a folder is given, it will become the current folder. The message
536 replied\-to will become the current message.
538 If any addresses occur in the reply template, addresses in the template
539 that do not contain hosts are defaulted incorrectly. Instead of using
540 the localhost for the default,
542 uses the sender's host.
543 Moral of the story: if you're going to include addresses in a reply
544 template, include the host portion of the address.
549 switch is only used to do address-folding; other
550 headers are not line\-wrapped.
560 it does not actually run the
563 Hence, if you define your own