This section has one version of forw that calls a specialized editor script to edit a message before it's forwarded. The second MH version is actually a version of repl, acting like forw to work around a problem with MIME forwarding.
How well does it work? I've used resend for about four years now, and it works quite well at the sites where I've tried it. You may have to tweak it for your site. But, when it doesn't work, ed (the editor it uses to clean up the draft noninteractively) usually just prints a question mark (?) and leaves the forwarded draft alone -- resend.fixmsg pops me into vi, I edit the draft by hand and send it. Here is an example of resend:
% comp ... What now? push % ...Time passes... You have new mail. % inc 45+ 01/09 MAILER-DAEMON Returned mail: Host unknown % show ...Nasty-gram from MAILER-DAEMON... % resend ...My editor (vi) starts... ...I fix the address... What now? push % rmm %The resend.fixmsg script is in this book's online archive. See Section Explanation of resend for details.
The mforw command version lets you use -filter with -mime. Unlike forw, mforw can forward only one message at a time. This is because mforw actually uses repl, not forw, to forward the message. mforw uses an mhl filter file named mforwfilt to include the parts you choose of the original message; it adds an mhn #<message/rfc822 directive above the forwarded message. You can type notes before the message you forward. (But, to type notes after the message you forward, you'll need to add an mhn #<text directive before your notes.)
% mforw To: ehuser cc: Subject: About the meeting on Friday ------ Emma, here's a note from Al about the meeting. See you there! CTRL-D What now? list ...to see draft... To: ehuser Subject: About the meeting on Friday ------ Emma, here's a note from Al about the meeting. See you there! #<message/rfc822 [Forwarded message] Date: Mon, 09 Jan 1995 09:49:08 -0500 From: Al Bok <email@example.com> To: firstname.lastname@example.org Subject: The idea I'd like to discuss Friday Jerry, ... What now? e mhn What now? sOf course, if you've set an automhnproc, you won't need to type edit mhn. Here's how to add mforw:
; filter file for mforw (version of repl) :#<message/rfc822 [Forwarded message] nocomponent,width=10000 ignores=return-path,message-id,received,replied,forwarded,resent extras: : body:You may want to edit the ignores= variable to change the header fields that mforw excludes. The Section Formatting the Message Header covers that part of mhl.
Add this entry to your MH profile, or add the arguments to your alias or function:
mforw: -filter mforwfilt -form forwcomps
[Table of Contents] [Index] [Previous: msg: `While You Were Out' Messages with comp] [Next: Edit Messages with show: mhedit]
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 <email@example.com>