[Next] [Previous] [Up] [Top] [Contents] [Index]

Table of Contents

mh Command Reference

This appendix provides an alphabetical reference to the subset of mh commands discussed in Chapter 12.

Remember to use the man pages if you need help on any of these commands.

Command

Description

% comp [-e editor]

Compose a message. This brings up a vi (or specified editor) session. Then save the message file, and exit the editor (see box below for more information).

Emergency vi exit: hit the Escape key (or <Ctrl-[>) and then enter:

:x to save and exit, or

:q! to quit without saving

At the What Now? prompt, you can enter a carriage return to get a list of options. Normally you will enter one of these options:

send to send the message

quit to save the message in Mail/drafts but not send it

quit -delete to quit and not save

To send a message in which you want to include a file, compose the message, and use the "include file" command for vi:

:r filename

% folder +new_folder_name

Create a new folder.

% forw [n]

Forward the current message (or the specified message).

% inc

Incorporate new incoming message(s).

% next

Display the next message.

% pick -help

Display a list of pick options.

% pick options

Select messages by content, date, sender, recipient, etc.

% prev

Display the previous message.

% refile +folder [n m ...]

Move the current message (or specified messages) from the current folder to a different folder.

% repl [n]

Reply to the current (or specified) message. By default, everyone who got the original message gets a copy (the sender, plus everyone in To: and cc:). Respond to the What Now? prompt.

% repl_inc [n]

Like repl, but include the original message. Respond to the What Now? prompt.

% rmf +folder

Delete the specified folder.

% rmm [n m ...]

Delete the current (or specified) message(s).

% scan [+folder_name]

Display message headers from current folder (or folder_name, and set this folder to current).

% send file

Send file to all the destinations defined, namely To: at a minimum, and cc:, if it's filled it in. (If you change your header to include Bcc: (blind copy), Fcc: (folder copy), it will send it to addresses in these categories as well.)

% setup mh

Setup the mh product.

% show +folder_name

Display the current message in folder_name and set this folder to current.

% show [n]

Display the current (or specified) message.

% show n | flpr -q queue

Print message number n on queue.

% show n > filename

Extract current (or specified) message into a file.

% show -showproc mhl n | flpr -q queue

Print and format the message a little differently so that it's easier to read (and nicer for printing), and pipe it to more. Then send it to the printer.

% show -showproc pr m n ... | flpr -q queue

Print messages and separate them onto successive pages. Then send it to the printer.


UNIX at Fermilab - 10 Apr 1998

[Next] [Previous] [Up] [Top] [Contents] [Index]