Explanation of original

[previous] [next] [table of contents] [index]

The Section Recovering Drafts Edited by mhn gives an overview of this script. Here is the original script (you might want to open it in a separate browser window). To install it, see the Section Programs in This Book's Archive.

The original script is straightforward. It finds the mhdraft environment variable (shown in the Table Environment Variables that MH Sets), set by the whatnow program. The script uses a Bourne shell ${variable?error} parameter-substitution test to print a two-line error message if mhdraft isn't set. Otherwise, the value of mhdraft is parsed to find the directory and filename that hold the draft message. The filename will be different if your account uses a draft folder; the script handles single drafts and draft folders.

[Table of Contents] [Index] [Previous: Explanation of mysend] [Next: Explanation of recomp]


Last change $Date: 1996/06/06 15:09:48 $

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 <jpeek@jpeek.com>