1 .TH REPL %manext1% 2014-12-15 "%nmhversion%"
6 repl \- reply to an nmh 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 reply to a message.
59 In its simplest form (with no arguments),
61 will set up a message-form skeleton in reply to the current message
62 in the current folder, and invoke the
67 uses a reply template to construct the draft of the reply.
68 A reply template is simply an
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 default forms file.
85 The default reply template \*(lqreplcomps\*(rq will direct
87 to construct the reply message draft as follows:
91 To: <Mail\-Reply\-To> or <Reply\-To> or <From>
92 cc: <To> and <cc> and <personal address>
93 Fcc: {fcc switch} or +outbox
94 Subject: Re: <Subject>
95 In\-Reply\-To: <Message\-Id>
96 References: <Message\-Id>
97 Comments: In\-Reply\-To <From> or <apparently from> or <Sender>
104 where field names enclosed in angle brackets (<\ >) indicate the
105 contents of the named field from the message to which the reply is
108 By default, the \*(lqcc:\*(rq field is empty. You may selectively add
109 addresses to this default with the
112 switch. This switch takes an argument
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 address.
122 will use the standard forms file \*(lqreplgroupcomps\*(rq.
123 This will construct a draft message that is intended as a group or
124 followup reply. If a file named \*(lqreplgroupcomps\*(rq exists
125 in the user's nmh directory, it will be used instead of this default
126 forms file, unless you specify another forms file on the command line
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 from the default \*(lqcc:\*(rq list of
166 the reply. You may give this switch multiple times (with different arguments)
167 if you wish to remove multiple types of address.
169 In any case, you may specify an alternative forms file with the switch
175 switch modifies the action of
178 switch by interactively asking you if each address that normally would be
179 placed in the \*(lqTo:\*(rq and \*(lqcc:\*(rq list should actually be sent a copy.
180 This is useful for special-purpose replies. Note that the position of
185 switches, like all other switches which take a positive and negative form,
188 Lines beginning with the fields \*(lqTo:\*(rq, \*(lqcc:\*(rq, and
189 \*(rqBcc:\*(rq will be standardized and have duplicate addresses removed.
195 formatting of these fields.
197 If the draft already exists,
199 will ask you as to the disposition of the draft. A reply of
206 will replace the existing draft with a blank skeleton; and
208 will display the draft.
212 for a description of the
216 switches. Note that while in the editor, with
218 and if the current directory is writable, the message being replied
219 to is available through a link named \*(lq@\*(rq (assuming the default
221 In addition, the actual pathname of the message is stored in the
224 and the pathname of the folder containing the message is stored in
225 the environment variable
227 The creation of the \*(lq@\*(rq file is controlled via the
237 to pass the arguments for
241 Both arguments are required;
243 must be non-empty while
245 can be empty, e.g., '' in a shell command line. The
247 switch can be used multiple times.
248 See the Convert Interface section of
250 for a description of the convert mechanism, and
251 .I %docdir%/contrib/replaliases
252 for examples of its use.
256 uses a forms file to direct it how to construct the beginning of the
257 draft, it uses a message filter file to direct it as to how the message
258 to which you are replying should be filtered (re-formatted) in the body
259 of the draft. The filter file for
261 should be a standard form file for
267 to format the message to which you are replying.
275 specify which message filter file to use.
279 is given (it is the default) and the
281 switch is not used, then the message to which you are replying is not
282 included in the body of the draft.
286 is given, then a default message filter file is used.
287 This default message filter should be adequate for most users.
289 .RI \*(lq mhl.reply \*(rq
298 which outputs each line of the body of the message prefaced with the
299 \*(lq>\*(rq character and a space.
302 .RI \*(lq mhl.reply \*(rq
306 it will be used instead of this form. You may specify an alternate
307 message filter file with the switch
311 Other reply filters are commonly used, such as:
316 body:nocomponent,compwidth=9,offset=9
320 which says to output a blank line, and then the body of the message
321 being replied to, indented by one tab stop. Another popular format
326 message-id:nocomponent,\|nonewline,\\
327 formatfield=\*(lqIn message %{text},\ \*(rq
328 from:nocomponent,\|formatfield=\*(lq%(decode(friendly{text})) writes:\*(rq
329 body:component=\*(lq>\*(rq,\|overflowtext=\*(lq>\*(rq,\|overflowoffset=0
333 This message filter file cites the Message-ID and author of the message
334 being replied to, and then outputs each line of the body prefaced with
335 the \*(lq>\*(rq character.
337 You can also use an external format program to format the message body.
338 The format program is specified by the
340 profile entry, and is enabled by the \*(lqformat\*(rq flag. A message
341 filter using an external format program would look like this:
345 body:component=\*(lq>\*(rq,\|nowrap,\|format
351 documentation for more information.
352 The format program can be changed by the
359 To use the MIME rules for encapsulation, specify the
371 automatically; you must specifically give the command
377 prior to sending the draft.
381 switch is given, the message being replied to will be annotated with
389 where the address list contains one line for each addressee.
390 The annotation will be done only if the message is sent directly from
392 If the message is not sent immediately from
394 .RB \*(lq "comp\ \-use" \*(rq
395 may be used to re-edit and send the constructed message, but the
396 annotations won't take place.
397 Normally annotations are done inplace in order to preserve any links
401 switch to change this.
403 Although the default template specifies that a copy of the reply will be
404 put in the folder 'outbox', if the
407 switch is given it will override the default value.
408 More than one folder, each preceded by
412 In addition to the standard
416 also recognizes the following additional
422 .ta \w'Escape 'u +\w'Returns 'u
423 .I "Escape Returns Description"
424 fcc string Any folders specified with `\-fcc\ folder'
428 To avoid reiteration,
430 strips any leading `Re: ' strings from the
442 draft folder facility. This is an advanced (and highly useful) feature.
445 for more information.
447 Upon exiting from the editor,
453 for a discussion of available
454 options. The invocation of this program can be inhibited by using the
456 switch. (In fact, it is the
458 program which starts the initial edit. Hence,
460 will prevent any edit from occurring.)
464 switch is intended to be used by the Emacs mh-e interface
468 .BR \-nowhatnowproc .
471 to be created, containing the draft message that would normally be presented
472 to the user for editing.
473 No mail is actually sent.
478 switch specifies the message to be replied to as an exact filename rather
481 folder and message number.
482 The same caveats apply to this option as to the
487 looks for all format, filter and template files in multiple locations:
488 absolute pathnames are accessed directly, tilde expansion is done on
489 usernames, and files are searched for in the user's
491 directory as specified in their profile. If not found there, the directory
492 .RI \*(lq %nmhetcdir% \*(rq
497 .ta \w'%nmhetcdir%/ExtraBigFileName 'u
498 ^%nmhetcdir%/replcomps~^The standard reply template
499 ^or <mh-dir>/replcomps~^Rather than the standard template
500 ^%nmhetcdir%/replgroupcomps~^The standard `reply -group' template
501 ^or <mh-dir>/replgroupcomps~^Rather than the standard template
502 ^%nmhetcdir%/mhl.reply~^The standard message filter
503 ^or <mh-dir>/mhl.reply~^Rather than the standard filter
504 ^$HOME/.mh_profile~^The user profile
505 ^<mh-dir>/draft~^The draft file
507 .SH "PROFILE COMPONENTS"
511 .ta \w'ExtraBigProfileName 'u
512 ^Path:~^To determine the user's nmh directory
513 ^Alternate\-Mailboxes:~^To determine the user's mailboxes
514 ^Current\-Folder:~^To find the default current folder
515 ^Draft\-Folder:~^To find the default draft-folder
516 ^Editor:~^To override the default editor
517 ^Msg\-Protect:~^To set mode when creating a new message (draft)
518 ^fileproc:~^Program to refile the message
519 ^mhlproc:~^Program to filter message being replied-to
520 ^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
530 .I %docdir%/contrib/replaliases
533 .RB ` +folder "' defaults to the current folder"
534 .RB ` msg "' defaults to cur"
536 .RB ` "\-nocc\ all" "' with `\-nogroup', `\-cc\ all' with `\-group'"
538 .RB ` \-nodraftfolder '
544 .RB ` "\-width\ 72" '
547 If a folder is given, it will become the current folder. The message
548 replied to will become the current message.
550 If any addresses occur in the reply template, addresses in the template
551 that do not contain hosts are defaulted incorrectly. Instead of using
552 the localhost for the default,
554 uses the sender's host.
555 Moral of the story: if you're going to include addresses in a reply
556 template, include the host portion of the address.
561 switch is only used to do address-folding; other headers are not line-wrapped.
571 it does not actually run the
574 Hence, if you define your own