repl - reply to a message (only available within the message handling system, mh)
repl [msg] [+folders] [options]
Marks out the original message as replied to. When the message is shown on the listing produced by scan, it is marked with a dash (-). The following lines are also added to the message:
The default settings for this command are:
+folder defaults to the current folder msg defaults to the current message -cc all -format -noannotate -nodraftfolder -noinplace -noquery -width 72
Use repl to reply to a message that you have received.
By default, repl replies to the current message in the current folder. If you want to reply to another message, you can specify a message number as the msg argument. You can also specify a message in another folder by supplying a +folder argument. You can supply both a msg and a +folder argument. If you specify a folder without giving a message number, repl will reply to the current message in the named folder.
When you reply to a message, repl automatically fills in the mail header for you, taking the information it needs from the mail header of the original message. The following example shows how repl constructs the mail header for the return message: To: <Reply-To> or <From> or <sender> cc: <cc>, <To>, and yourself Subject: Re: <Subject> In-reply-to: Your message of <Date>. <Message-Id>
Field names enclosed in angle brackets (< >) indicate the contents of the named field from the original message.
Normally, repl replies to the original sender, and sends carbon copies to all the addressees on the original message.
You can create a different mail header from the default and use it every time you reply to mail. If you create an alternative mail header and store it in the file replcomps in your Mail directory, repl will use it instead of the default header file. This must be an mhl file; see mh-format(4) for more information.
If you do not have a draft folder set up, repl creates your new draft in a file called draft in your Mail directory. This file must be empty before you can create a new draft, which means that you can only store one draft at a time. If it is not empty, the mail system will ask you what you want to do with the existing contents. The options are: Aborts repl, leaving the draft intact. Replaces the existing draft with the appropriate message form. Displays the draft message. Refiles the existing draft message in the specified folder, and provides a new message form for you to complete.
If you want to be able to have more than one draft at a time, you can set up a draft folder in your .mh_profile. This allows you to keep as many unsent drafts as space allows, and still create new messages as you wish. To do this, make sure that the following line is in your .mh_profile:
For more information on how to do this, see mh_profile(4).
If you set up a draft folder, all draft messages are created in that folder. If you decide not to send the draft, by typing quit at the What now? prompt, the message is stored in the draft folder. You can then re-edit the message, or send it at a later date, by using the comp -use command.
Note that while in the editor, the message being replied to is available
through a link named
(assuming the default
whatnowproc). In addition, the actual pathname of the message is
stored in the environment variable
$editalt, and the pathname
of the folder containing the message is stored in the environment variable
$mhfolder. If your current working directory is not writable, the
is not available.
Path: To determine your Mail directory
Alternate-Mailboxes: To determine your mailboxes
Draft-Folder: To find the default draft folder
Editor: To override the default editor
Msg-Protect: To set mode when creating a new message (draft)
fileproc: Program to refile the message
mhlproc: Program to filter message being replied to
whatnowproc: Program to ask the
This example replies to message number 15 in the current folder: % repl 15 The next example creates your reply in the folder +drafts. If you decide not to send the draft reply, the mail system will store it in this folder: % repl -draftfolder +drafts The next example places a copy of your reply in your +copylog folder: % repl -fcc +copylog
The default system reply template.
The user-supplied alternative to the standard reply template.
The user profile.
The draft file.
comp(1), dist(1), forw(1), prompter(1), send(1), whatnow(1), mh-format(4)