$book = '..'?>
include "$book/mh.php"; includeHeader('getrea.html', 'onmanpag.html'); ?>Before you use MH, your UNIX account needs to be set up. Log in and get a shell prompt (which I'll show as a percent sign (%); yours might be different). If you're using the X Window System, open an xterm window (a terminal or command window) where you get a shell prompt.
Type the following command at the prompt:
% folder +inbox
If the answer is something like folder: Command not found
then the MH commands aren't in your shell search path or they
haven't been installed on your system. (Here
is help setting your search
path.) Your system administrator can help you find the MH
commands -- or install them.
% folder +inbox
Your MH-directory "/xxx/Mail" doesn't exist; Create it? y
Create folder "/xxx/Mail/inbox"? y
inbox+ has no messages.
Now, if you go to your home directory and type ls -a, you
should see a directory named Mail and a file named
.mh_profile. You're all set.
% folder +inbox
inbox+ has 5 messages ( 1- 5); cur= 5.
At this point, it's a good idea to be sure
that your .mh_profile file isn't left over from MH before
Version 5. (Except, of course, if your computer is still running
an old MH version. If you aren't sure, see the Section
The -help Switches.)
Look through the file with a UNIX command like cat, more or pg:
% cat .mh_profile
Path: Mail
Folder-protect: 700
Msg-protect: 600
...
Current-folder: xxx
...
If you see a Current-folder: entry, like the one above,
use a text editor (vi, emacs, and so on) to delete
it from the .mh_profile. That entry is left over from MH
before Version 5, and it can cause some warning messages when
you run newer MH commands.
(MH used to keep track of the current
folder name in the .mh_profile file. Now it uses a file
named context in the MH directory instead.)
XXXrepl: -annotate
Later, after you have more experience with MH, you may want to
delete the Xs.
includeFooter('$Date: 2006-05-31 15:13:43 -0700 (Wed, 31 May 2006) $',
'OReilly: 1991, 1992, 1995');
?>