MH & nmh: Email for Users & Programmers

May, 2006

Version of send: push

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...)