Version of send: push

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

The command that sends your messages is called send. When you type s or send at a What now? prompt, the send program is executed. If you type p or push at the What now? prompt, send -push is run instead.

Here's a version of send called push. (This idea came from the Marshall Rose examples in the MH distribution, the miscellany/mtrenv directory.)

If you replace the whatnow program with push, it will send your draft message as soon as the interface you're using (like repl) starts the whatnowproc. This means that prompter, or any other editor, won't run at all. So you can't use push with commands like comp which need an editor to fill in the draft. It's useful, however, for programs like thanks that send "canned" messages, because you won't have to wait for a What now? prompt: your message is sent right away.

By the way, if you don't have a draft folder set up (the Section Draft Folder), you might do that before you use push.

Finally, try it and be sure that your messages are really sent. (Somehow, this push command made me uneasy for a while because I was so accustomed to seeing the What now? prompt...)

[Table of Contents] [Index] [Previous: Append Text with prompter.nopre] [Next: Versions of scan]


Last change $Date: 1996/06/06 15:14:57 $

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>

Questions or problems regarding this web site should be directed to Steve Gielda.
Copyright 1999 www.cotse.com.  All rights reserved.
Last modified: Friday April 02, 1999.