Here are some new versions of the repl command. One lets you include the original message in your reply. Another shows how to send a standard answer without typing any text. A third lets you follow up to a message you've already sent. The fourth is for replies to messages that were sent to me at another address.
% replx To: joeb@xyz.edu (Joe Blom) Cc: mh-users@ics.uci.edu Subject: Re: whatever In-reply-to: <9501090757.AA02588@xyz.edu> ------- On Tue, 10 Jan 1995 09:51:06 EST Joe Blom wrote: > Blah blah blah > Blah blah blah Joe, I think that's right. But...
NOTE: replx may not work on early versions of MH.
To install replx, use these steps:
Add the following entry to your MH profile, or add the arguments to your alias or function. The -editor vi and -query are optional:
replx: -filter replxfilt -form replxcomps -editor vi -query
; filter file for replx command body:component="> "
Put a draft template file named replxcomps in the MH directory. To make it, copy the default system replcomps file. Then delete the the last four lines, shown below (which may be a little different on your version):
%<{date}In-reply-to: Your message of "\ %<(nodate{date})%{date}%|%(pretty{date})%>."%<{message-id}\ %{message-id}%>\n%>\ --------and replace them by these three lines:
%<{message-id}In-reply-to: %{message-id}\n%>\ --------\n\ On %{date} %(friendly{from}) wrote:the Chapter MH Formatting explains how to modify this.
% show ...Message appears... % thanks Reply to cathyw? y Reply to bigboss? n To: cathyw Subject: Re: Your report is ready at the copy center In-reply-to: ... -------- Thanks! --Jerry What now? s %The following steps explain how to set up repl versions to send standard replies:
...These lines omitted... ------- Thanks! --Jerry
Add this entry to your MH profile, or add the arguments to your alias or function:
thanks: -form thankscomps -editor cat -query(If you write the push version, you can add -whatnowproc push to that entry, too. Then, you won't need to wait for the What now? prompt either. That's fast!)
If you'd like to include a copy of the original message, use a standard -form replcomps (instead of thankscomps) in your MH profile entry. Add a -filter thanksfilt (or appfilt, okfilt, ...). Here's an appfilt file that approves a message. It includes the message and adds more details:
:The following request has been approved for current fiscal year funding: : body:component="> " : :1) Fill out form K-9 in triplicate. :2) Print your last name first and your first name last. :3) Send form to Dee Roff in the Formatting Department. : :-- Hiram Q. Bigbottom, President
For example:
% comp To: belle@vogue.com cc: charles@ritz.fr Fcc: outbox Subject: I loved that show! ------ It was simply maaaahvelous. You MUST invite me again. CTRL-D What now? send % follx last +outbox To: belle@vogue.com cc: charles@ritz.fr Subject: Re: I loved that show! X-followup-to: My message of "Tue, 10 Jan 1995 02:07:09 -0500." <9501090707.AA28207@mysun.xxx.yyy.zzz> ------ In my message, I wrote: It was simply maaaahvelous. You MUST invite me again. I forgot to mention the lovely caviar! Blah, blah, blah... CTRL-D What now? send %If you don't want to include all of the original text, just edit the followup at the What now? prompt (with vi, etc.) before you send it.
Here's how to add foll and follx:
%(lit)%(formataddr{to})%<(nonnull)%(void(width))%(putaddr To: )\n%>\ %(lit)%(formataddr{cc})%<(nonnull)%(void(width))%(putaddr cc: )\n%>\ %<{fcc}Fcc: %{fcc}\n%>\ Fcc: %<{subject}Subject: Re: %{subject}\n%>\ %<{date}X-followup-to: My message of "\ %<(nodate{date})%{date}%|%(tws{date})%>."%<{message-id} %{message-id}%>\n%>\ --------If you never use folder copies, get rid of the Fcc: field. If you'd rather, you can send a cc: to yourself automatically by adding %(formataddr(me)) next to the %(formataddr{cc}).
; filter file for follx :In my message, I wrote: body:nocomponent,offset=3This second one puts the date of the original message in the heading (for help with it, see the Chapter MH Formatting):
; filter file for follx date:nocomponent,formatfield="On %{text} I wrote:" body:component="< ",overflowtext="< "
Add these entries to your MH profile, or add the arguments to your alias or function:
foll: -form follcomps follx: -form follcomps -filter follxfilt -editor vi
% comp +inbox 12where +inbox 12 is the message you want to follow up on. The comp command will make a new draft with a copy of that message. Then you can edit the draft copy and send it.
That's not as handy as the foll command version, though, because the draft header will have fields (like Date:, Received:, Message-Id:, and so on) that you'll have to delete before you send the draft.
NOTE: replb may not work on early versions of MH.
Here are the steps for installing replb:
Add the following entry to your MH profile, or add the arguments to your alias or function. The -ed vidraft and -query are optional:
replb: -filter replbfilt -query -nocc me -ed vidraft -form replbcomps
#! /bin/sh # $Id: vidraft,v 1.1 92/07/19 09:36:09 jerry Exp $ ### vidraft -- edit draft message starting at top of body # ex command goes to top, then row of dashes; then next (if can): exec /usr/ucb/vi +'1;/^--*$/;+' $*
; filter file for replb command body:component="> " : :Jerry Peek -- Manager, Online Information Services :O'Reilly & Associates, Inc.; 103A Morris St.; Sebastopol, CA 95472 USA :ORA info: gopher.ora.com, email to nuts@ora.com, or just phone us. :Me: jerry@ora.com; (800)998-9938, +1 707-829-0515, fax +1 707-829-0104Here's a MIME version that makes a multipart message with descriptions:
; filter file for replb command :#<text/plain [Your original message] body:component="> " :#<text/plain [Signature] :Jerry Peek -- WebMaster, GopherMaster, ListMaster, etc. :phone US/Canada toll-free, (800)998-9938; :international: +1 707 829-0515; FAX: +1 707 829-0104 :Information or questions about orders: nuts@ora.com
Put a draft template file named replbcomps in the MH directory. To make it, copy the default system replcomps file. Add the following two lines to the top of the file:
From: "Your Name" <aliasname@host.xxx.yyy> cc: aliasname
[Table of Contents] [Index] [Previous: Writing Command Versions as Aliases or Functions] [Next: Make Message Bookmarks with mark]
This file is from the third edition of the book MH & xmh: Email for Users & Programmers, ISBN 1-56592-093-7, by Jerry Peek. Copyright © 1991, 1992, 1995 by O'Reilly & Associates, Inc. This file is freely-available; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more information, see the file copying.htm.
Suggestions are welcome: Jerry Peek <jerry@ora.com>
HIVE: All information for read only. Please respect copyright! |